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
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
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
(<> =~ /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
>
> 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 <*.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.