Perl-Sensitive Sunglasses | |
PerlMonks |
Re: using split on a stringby jorg (Friar) |
on May 14, 2001 at 16:33 UTC ( [id://80189]=note: print w/replies, xml ) | Need Help?? |
You could forget all this regex stuff and use a standard Perl module instead :
will give you $VAR1 = 'china'; $VAR2 = 'C:\\Documents and Settings\\Administrator\\Desktop\\'; $VAR3 = '.txt'; The fileparse() function takes a path as first argument and a pattern describing the extension as second arg Jorg "Do or do not, there is no try" -- Yoda
In Section
Seekers of Perl Wisdom
|
|