On May 31, 9:35 am, [EMAIL PROTECTED] ([EMAIL PROTECTED])
wrote:
> On May 31, 9:27 am, [EMAIL PROTECTED] (Alma) wrote:
>
> > # extract the file name
> > #       my @parts = split('\/',$file_path);

> Your split statement seems to be wrong. split uses a regex to match so
> it should be:
>
> split /\\/, $file_path;

There is nothing at all wrong with the OP's split.  Single quotes are
a perfectly legitamite delimiter for a regular expression.  And why
did you change the OP's from splitting on a front-slash to splitting
on a back-slash?

Paul Lalli


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to