in reply to Re: split to get the dir name
in thread split to get the dir name
Quothe dragonchild:
my $filename = (split ' ', $_)[-1];
my $filename = (split ' ', $_)[-1];
But what if the filename contains a space?
------------------------------------------------------------
"Perl is a mess
and that's good because the
problem space is also a mess." - Larry Wall
|
---|
Replies are listed 'Best First'. | |
---|---|
Re3: split to get the dir name
by dragonchild (Archbishop) on Sep 29, 2003 at 19:02 UTC | |
by Plankton (Vicar) on Sep 29, 2003 at 19:27 UTC | |
by dragonchild (Archbishop) on Sep 29, 2003 at 19:30 UTC | |
by Plankton (Vicar) on Sep 29, 2003 at 19:39 UTC | |
by dragonchild (Archbishop) on Sep 29, 2003 at 19:42 UTC |
In Section
Seekers of Perl Wisdom