in reply to deleting links but not files

Is there a way to check if i'm dealing with a link or a file ?
Sure is, just check with -l e.g
print "yup, it's a link" if -l $filename;

HTH

_________
broquaint

Replies are listed 'Best First'.
Re: Re: deleting links but not files
by meirgold (Acolyte) on Jun 03, 2003 at 15:16 UTC
    Thanks !!!