Re:How to know if a symlink exists

2002-01-14 Thread Steven Brooks
On Monday 14 January 2002 02:25 am, I wrote: > On Monday 14 January 2002 02:07 am, you wrote: > > Hi, I wanted to do this: > > ln -s X Y but unless it don't already exists? > > How can I do this in Perl? > > Thanks > > Using the normal file testing in Perl I think this'd work: > > if (-l $filename

Re:How to know if a symlink exists

2002-01-14 Thread Steven Brooks
On Monday 14 January 2002 02:07 am, you wrote: > Hi, I wanted to do this: > ln -s X Y but unless it don't already exists? > How can I do this in Perl? > Thanks Using the normal file testing in Perl I think this'd work: if (-l $filename) { # do stuff here } that's a dash then the letter

Re:How to know if a symlink exists

2002-01-14 Thread Jorge Goncalvez
Hi, I wanted to do this: ln -s X Y but unless it don't already exists? How can I do this in Perl? Thanks -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]