in reply to Re^3: Net::FTP Mget
in thread Net::FTP Mget
And the attempt to fix it with .+? ?.+? to check for an optional space is insufficient .. it will failt for filenames with two or more spaces, and also for filenames with no spaces, it will think the previous column (date or whatever) is part of the filename ...perl -le '$_="-r--r--r-- date user group blah and stuff.txt"; s/^(.+ +)(.+? ?.+?)$/$2/; print '
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Net::FTP Mget
by mikeock (Hermit) on Oct 12, 2005 at 20:03 UTC |