H.
Look at "perldoc -f unlink"
> -Original Message-
>
> Hi,
>
> Is there any module which has methods that can be used to
> delete a file from the filesystem in the
> windows NT environment.
>
> Thanks in Advance
> Chinku
--
To un
Hi,
Is there any module which has methods that can be used to delete a file from the
filesystem in the
windows NT environment.
Thanks in Advance
Chinku
__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com
--
To
Jenda Krynicky wrote:
>
> From: "John W. Krahn" <[EMAIL PROTECTED]>
> > perldoc -f -C
> >-M Age of file in days when script started.
> >-A Same for access time.
> >-C Same for inode change time.
> >
> >
> > In *nix files do not have a
From: "John W. Krahn" <[EMAIL PROTECTED]>
> perldoc -f -C
>-M Age of file in days when script started.
>-A Same for access time.
>-C Same for inode change time.
>
>
> In *nix files do not have a creation time. You probably want to us
From: John W. Krahn [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 17, 2003 11:54 AM
To: [EMAIL PROTECTED]
Subject: Re: trying to delete a file if >= 1 day old
Tony Esposito wrote:
>
> Fellow Perl neophytes ( and non-neophytes),
Hello,
> I need a little clarification.
Tony Esposito wrote:
>
> Fellow Perl neophytes ( and non-neophytes),
Hello,
> I need a little clarification. I am trying to remove files that are
> greater that 24 hours old. The code snippet below is in a 'while' loop that
> steps through a directory, yet it seems not to work - no fil
enior Programmer Analyst --- WGO
[mailto:[EMAIL PROTECTED]
Sent: Thursday, July 17, 2003 11:32 AM
To: Tony Esposito; [EMAIL PROTECTED]
Subject: RE: trying to delete a file if >= 1 day old
Tony Esposito wrote:
> Fellow Perl neophytes ( and non-neophytes),
> I need a little clarificat
m: Bob Showalter [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 17, 2003 11:31 AM
To: Tony Esposito; [EMAIL PROTECTED]
Subject: RE: trying to delete a file if >= 1 day old
Tony Esposito wrote:
> Fellow Perl neophytes ( and non-neophytes),
> I need a little clarification. I am trying t
Tony Esposito wrote:
> Fellow Perl neophytes ( and non-neophytes),
> I need a little clarification. I am trying to remove files that are
> greater that 24 hours old. The code snippet below is in a 'while'
> loop that steps through a directory, yet it seems not to work - no
> files are remov
Tony Esposito wrote:
> Fellow Perl neophytes ( and non-neophytes),
> I need a little clarification. I am trying to remove files that are
> greater that 24 hours old. The code snippet below is in a 'while'
> loop that steps through a directory, yet it seems not to work - no
> files are remov
Fellow Perl neophytes ( and non-neophytes),
I need a little clarification. I am trying to remove files that are
greater that 24 hours old. The code snippet below is in a 'while' loop that
steps through a directory, yet it seems not to work - no files are removed
no matter what their 'age'
t; @ARGV.""; ++$i) {
> if (-e $ARGV[$i]) {
> unlink ("$ARGV[$i]");
> }
> else {
> print "File $ARGV[$i] does not exist!\n";
> }
> }
>
> ----- Original Message -
> From: "Stéphane JEAN BAPTISTE" <[EMAIL PROTECTED]>
> To: "PERL" <[EMAIL PROTECTED]>
> Sent: Thursday, June 21, 2001 10:03 AM
> Subject: to delete a file
>
>
>
>
> How can I delete a file ?
>
> thanks
>
>
run faster with less resource overhead.
- Original Message -
From: "n6tadam" <[EMAIL PROTECTED]>
To: "Stéphane JEAN BAPTISTE" <[EMAIL PROTECTED]>;
"PERL" <[EMAIL PROTECTED]>
Sent: Thursday, June 21, 2001 10:04 AM
Subject: Re: to delete a
]");
}
else {
print "File $ARGV[$i] does not exist!\n";
}
}
- Original Message -
From: "Stéphane JEAN BAPTISTE" <[EMAIL PROTECTED]>
To: "PERL" <[EMAIL PROTECTED]>
Sent: Thursday, June 21, 2001 10:03 AM
Subject: to delete a file
How can I delete a file ?
thanks
To delete a file:
unlink($filename) or die "can't delete $filename:$!\n";
To delete lots of files:
unlink(@filenames) == @filenames or die "couldn't unlink all of @filenames: $!\n";
To delete a folder:
use File::Path;
rmtree($directory);
>>> Stéphane JEA
It's allright!
thank you
Stéphane JEAN BAPTISTE a écrit :
> How can I delete a file ?
>
> thanks
MAIL PROTECTED]>
Sent: Thursday, June 21, 2001 3:11 PM
Subject: Re: to delete a file
> On Thu, Jun 21, 2001 at 03:04:21PM +0100, n6tadam
([EMAIL PROTECTED]) spew-ed forth:
> > Hi,
> >
>
> [snip]
>
> >
> > Of course, from a perl script, you can either use
On Thu, Jun 21, 2001 at 03:04:21PM +0100, n6tadam
([EMAIL PROTECTED]) spew-ed forth:
> Hi,
>
[snip]
>
> Of course, from a perl script, you can either use:
>
> system("/bin/rm -f /path/to/filename");
>
> or
>
> `rm -f filename`
Don't do that. Just use unlink()
perldoc -f unlink
Cheers,
K
l Message -
From: Stéphane JEAN BAPTISTE <[EMAIL PROTECTED]>
To: PERL <[EMAIL PROTECTED]>
Sent: Thursday, June 21, 2001 3:03 PM
Subject: to delete a file
How can I delete a file ?
thanks
Please note that the content of this message is confidential between the original
s
unix:
rm filename
winblows:
del filename
oh wait, do you mean in perl ;) (wise a$$ arent I?)
perldoc -f unlink
> -Original Message-
> From: Stéphane JEAN BAPTISTE
> [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 21, 2001 10:03 AM
> To: PERL
> Subject
try the unlink command.
Stéphane JEAN BAPTISTE wrote:
> How can I delete a file ?
>
> thanks
How can I delete a file ?
thanks
22 matches
Mail list logo