Irfan J Sayed wrote:
Hi,

I have a following line/statement stored in variable $test

deliver.Admin_Irfan_Project.20060413.212355

i want to split this line in . and store in array.

I am using following code

my @name = Split(/./, $test);

split uses regular expressions to identify where to split the string.
The expression you supplied, /./, would split on everything.

In your particular case you could also split on /\W/. But this isn't a very good choice, just an example.

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to