Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: How do I remove current path from a dir listing

by t0mas (Priest)
on Oct 06, 2000 at 16:07 UTC ( [id://35564]=note: print w/replies, xml ) Need Help??


in reply to How do I remove current path from a dir listing

use strict; use File::Find; use Cwd; my $startDir=getcwd; find(sub {printf "%s\n", substr((split($startDir,$File::Find::name))[1 +],1) if ($File::Find::name ne $startDir);}, $startDir);


/brother t0mas

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (6)
As of 2024-04-26 09:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found