Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Re: Net::FTP file type and attributes

by Anonymous Monk
on Feb 21, 2004 at 02:49 UTC ( [id://330740]=note: print w/replies, xml ) Need Help??


in reply to Re: Net::FTP file type and attributes
in thread Net::FTP file type and attributes

I had the same problem not knowing another option I wrote a small function to tell if it is a directory or not given the dir() output.
sub is_dir { + my @list = split(//, $_); if( $list[0] eq 'd' ) { return 1; } else { return 0; } + }
Worked for me. Let me let me know if there is a better way.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://330740]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2024-04-24 01:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found