Think about Loose Coupling | |
PerlMonks |
Re: using split on a stringby damian1301 (Curate) |
on May 14, 2001 at 07:25 UTC ( [id://80135]=note: print w/replies, xml ) | Need Help?? |
You are splitting on a whitespace so it only splits it once (because you only have two variables to throw it in) and throws the rest out. What you want is:
When ran, the code gives this output: And of course to fine the extension, you can split it up from there. NOTE: I couldn't get split/\./,$pubupload; to work on the whole string, any ideas why? Tiptoeing up to a Perl hacker. Dave AKA damian
In Section
Seekers of Perl Wisdom
|
|