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.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.