Perl Monk, Perl Meditation | |
PerlMonks |
Re: Using splitby tachyon (Chancellor) |
on Mar 07, 2003 at 12:10 UTC ( [id://241116]=note: print w/replies, xml ) | Need Help?? |
This is a very common Perl idiom that lets you toss stuff caught in regex matches into lists. Note you need list context so the () around $filename are required for $1 to be assigned to it correctly.
cheers tachyon s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print
In Section
Seekers of Perl Wisdom
|
|