Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Parsing a file with multiple delimetersby ptum (Priest) |
on Jan 06, 2006 at 21:59 UTC ( [id://521652]=note: print w/replies, xml ) | Need Help?? |
It sounds to me as though split() might do the trick for you. How 'bout this:
Now $tokens[0] contains 'DsGccProxy.dll', $tokens[2] contains 'YES', and $tokens[1] contains all the executable names. If you want each of them, you could do a split on $tokens[1] using /,/ as the delimiter. Hope that gets you started. :) No good deed goes unpunished. -- (attributed to) Oscar Wilde
In Section
Seekers of Perl Wisdom
|
|