not elegant but this should work:
$res[0] = substr($data, 0, 3);
$res[1] = substr($data, 3);
Matt
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 13”N3??1“u 16:57
To: [EMAIL PROTECTED]
Cc: Perl-Win32-Users; Perl Beginner Group; [EMAIL PROTECTED]
Subject: regular expression please - help
Importance: High
dear price,
Again Sorry for the inconvenience.
data is : CDM210909 or FDM210909
probelm is : i need to split this word into CDM and 210909
--- 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-Win32-Users mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users