Two things
1) your answer - no need for split - just use regex

($a,$b) = $x =~ /(.{3})(.*)/;

2) Just use the relevant Active state list.  Many people are in multiple
lists and will not appreciate getting the same question 5 times.   In the
long run this will hurt your channces of getting an answer to you question.



                                                                                       
                                       
                    [EMAIL PROTECTED]                                       
                                       
                    Sent by:                                     To:     
[EMAIL PROTECTED]                        
                    [EMAIL PROTECTED]        cc:     
[EMAIL PROTECTED],                 
                    eState.com                                   
[EMAIL PROTECTED],                    
                                                                 
[EMAIL PROTECTED],                           
                                                                 
[EMAIL PROTECTED],                
                    03/01/01 03:13 AM                            
[EMAIL PROTECTED]                    
                                                                 Subject:     REGULAR 
EXPRESSION IN SPLIT FUNCTION - PLEASE   
                                                                 HELP ME.              
                                       
                                                                                       
                                       


DEAR FRIENDS,
     PLEASE HELP ME REGARDING THE REGULAR EXPRESSION IN SPLIT FUNCTION

data is : CDM210909 or   FDM210909  ( ie start with 3characters followed
any no of numeric numbers)
probelm is : i need to split this word into CDM  and 210909    ( split into
characters & numbers).

--- ie, i wish to split this word into char (first 3 characters & remaining
)

@res=split( / .{3}/ , $data );

but i could'nt get the answer. can u please help me.
Expecting your ineffable Wishes,

Pons.
Extn:  1328
--------------------------------------------------------------------------------


Learn to Grow  ------>   Grow to Learn more  & more.
--------------------------------------------------------------------------------


_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users




_______________________________________________
Perl-Unix-Users mailing list. To unsubscribe go to 
http://listserv.ActiveState.com/mailman/subscribe/perl-unix-users

Reply via email to