Think about Loose Coupling | |
PerlMonks |
Re: Save Split to Arrayby bv (Friar) |
on Aug 27, 2009 at 16:39 UTC ( [id://791715]=note: print w/replies, xml ) | Need Help?? |
Your problem seems to be understanding split. Any part of your string that matches the regular expression argument will be removed -- only the remaining parts populate the returned array.
$,=' ';$\=',';$_=[qw,Just another Perl hacker,];print@$_;
In Section
Seekers of Perl Wisdom
|
|