> 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
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
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
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.
> >>
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