in reply to Truncating Filename string
You could try something like this:
while(<DATA>) { if($_ =~ m/\/([\w\d\.]+)$/) { print "$1\n"; } } __DATA__ /blah/blah/blah/blah/file1.pl /blah/blah/file2.pl /blah/blah/blah/blah/blah/blah/blah/file3.pl
This will result in the desired output.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Truncating Filename string
by graff (Chancellor) on Jan 28, 2004 at 02:43 UTC |