Re: unlink help.

2003-10-29 Thread Sara
Thanks, Thats the point, I wanted to confirm. Sara. - Original Message - From: "Wiggins d Anconia" <[EMAIL PROTECTED]> To: "Sara" <[EMAIL PROTECTED]>; "beginners-cgi" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thurs

RE: unlink help.

2003-10-29 Thread Anthony Bhagwandin
r 29, 2003 15:45 To: beginners-cgi Cc: [EMAIL PROTECTED] Subject: unlink help. unlink <*.bak>; how I am supposed to specify directory above? for example I have to apply above unlink command to delete all backup files in the Specified directory. $dir = /home/path/to/dir is it right

Re: unlink help.

2003-10-29 Thread Anthony Saffer
Sara, You're unlink() statement is correct and should work fine. What errors, if any, are you getting? Anthony - Original Message - From: "Sara" <[EMAIL PROTECTED]> To: "beginners-cgi" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday

RE: unlink help.

2003-10-29 Thread Moon, John
(<> =~ /y/i) { $cnt = unlink <*.bak>; print "Removed $cnt files from $dir ending in .bak\n" if ($cnt); } print "Nothing removed from $dir\n" unless $cnt; -Original Message- From: Sara [mailto:[EMAIL PROTECTED] Sent: October 29, 2003 15:45 To: beg

Re: unlink help.

2003-10-29 Thread Wiggins d Anconia
> > unlink <*.bak>; > > how I am supposed to specify directory above? > > for example I have to apply above unlink command to delete all backup files in the Specified directory. > > $dir = /home/path/to/dir > > is it right? > > unlink <$dir/*.bak>; > > ?? > > Any ideas? > The <> operato

unlink help.

2003-10-29 Thread Sara
unlink <*.bak>; how I am supposed to specify directory above? for example I have to apply above unlink command to delete all backup files in the Specified directory. $dir = /home/path/to/dir is it right? unlink <$dir/*.bak>; ?? Any ideas? Thanks, Sara.