Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: List directory(s)

by mwah (Hermit)
on May 23, 2008 at 20:01 UTC ( #688209=note: print w/replies, xml ) Need Help??


in reply to List directory(s)

or an obfuscated solution:

my $filename = '/usr/local/bin/perl'; open my $fh, '<', \$filename; local ($/,$\) = ('/')x2; /(?<=\w)\// && ($\.=$_) && print("\n".($.-1).'. ') while <$fh>;

Regards

mwa

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2021-04-16 01:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?