Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Identical Files to Symbolic Links

by jdporter (Paladin)
on Nov 09, 2005 at 16:58 UTC ( [id://507137]=note: print w/replies, xml ) Need Help??


in reply to Identical Files to Symbolic Links

while(@fnames) { my $f = shift @fnames; next if(-l $f); for my $f2 (@fnames) { next if(-l $f2);

Correct me if I'm wrong, but it seems to me that you are simply ignoring all existing symlinks. If that is the case, then why not eliminate them from the original list? E.g.

@fnames = grep { ! -l $_ } @fnames;
We're building the house of the future together.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2024-04-25 07:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found