Re: Help with Unlink please

2003-08-14 Thread perlwannabe
> Steve Grazzini wrote at Wed, 06 Aug 2003 23:38:00 -0400: > >> On Wed, Aug 06, 2003 at 11:49:20PM -0400, perlwannabe wrote: >>> I have made the script as simple as possible and cannot get >>> unlink to work. >>> >>> unlink ("c:\testdir\*030977*.*") || die "unlink failed: $!"; >> >> You'd need to e

Help with Unlink please

2003-08-14 Thread perlwannabe
I am still struggling through the problem I was having earlier. However, I am a great deal further. I cannot seem to get unlink to delete the files from the directory. I have made the script as simple as possible and cannot get unlink to work. unlink ("c:\testdir\*030977*.*") || die "unlink fai

Re: Help with Unlink please

2003-08-08 Thread Janek Schleicher
Steve Grazzini wrote at Wed, 06 Aug 2003 23:38:00 -0400: > On Wed, Aug 06, 2003 at 11:49:20PM -0400, perlwannabe wrote: >> I have made the script as simple as possible and cannot get >> unlink to work. >> >> unlink ("c:\testdir\*030977*.*") || die "unlink failed: $!"; > > You'd need to expand t

Re: Help with Unlink please

2003-08-07 Thread Steve Grazzini
On Thu, Aug 07, 2003 at 11:00:07PM -0400, perlwannabe wrote: > > Steve Grazzini wrote at Wed, 06 Aug 2003 23:38:00 -0400: > >> my $pat = 'c:\testdir\*030977*.*'; ^ That looks like trouble. Using forward slashes, as Janek has done below, would have been smarter. > >>

Re: Help with Unlink please

2003-08-06 Thread Steve Grazzini
On Wed, Aug 06, 2003 at 11:49:20PM -0400, perlwannabe wrote: > I have made the script as simple as possible and cannot get > unlink to work. > > unlink ("c:\testdir\*030977*.*") || die "unlink failed: $!"; You'd need to expand the wildcards yourself: my $pat = 'c:\testdir\*030977*.*'; forea