![]() |
|
go ahead... be a heretic | |
PerlMonks |
Re: extracting a filename from an ls -Rlaby Tomte (Priest) |
on Aug 12, 2002 at 21:40 UTC ( [id://189646]=note: print w/replies, xml ) | Need Help?? |
Assuming that $ftp->ls() acts as its commandline cousin, just don't use l as an argument. You also might not want the a either, as it lists 'hidden' files, that depends on the context of your application. As a second note, instead of the if(...){...} blocks you can write shorter$ftp->doIt() || die("couldn't..."); regards, tomte
In Section
Seekers of Perl Wisdom
|
|