toastbread has asked for the wisdom of the Perl Monks concerning the following question:
Hi I just want to ask if there is a way I can get list of contents of an ftp path using a globbed string?
I have tried:
@con = $ftp->ls("glob*.???"); #and @con2 = $ftp->dir("glob*.???");
but they dont produce the output that I'm looking for.
The 'dir' supports globbing but it outputs additional datas.
It seems that LS and DIR commands of FTP(as well as some of its commands) have their own option such as -l, -w, etc. but the documentation of this is hard to find in the net.
I know it's possible to do this using regex but I just want to know if their is a very simple way in perl to do this so I can add it to my reference and use it also in my current project.
I need your help monks... I hope you have what I'm looking for.
Thanks in advance.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Get contents in an FTP path using glob
by aquarium (Curate) on Feb 01, 2010 at 22:36 UTC | |
by Khen1950fx (Canon) on Feb 02, 2010 at 00:00 UTC | |
|
Re: Get contents in an FTP path using glob
by molecules (Monk) on Feb 01, 2010 at 19:32 UTC | |
by toastbread (Novice) on Feb 01, 2010 at 19:54 UTC | |
by hbm (Hermit) on Feb 01, 2010 at 20:03 UTC | |
by toastbread (Novice) on Feb 01, 2010 at 20:33 UTC | |
by ikegami (Patriarch) on Feb 01, 2010 at 21:03 UTC | |
by hbm (Hermit) on Feb 01, 2010 at 20:44 UTC |