good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: parsing a space-separated filename in a line with fields separated by spacesby mamawe (Sexton) |
on Aug 15, 2007 at 22:28 UTC ( [id://632871]=note: print w/replies, xml ) | Need Help?? |
Would you mind using a regex?
puts nice single quotes around the name and you can access every field as well. You might even assign it to a list of variables.
In Section
Seekers of Perl Wisdom
|
|