[Israel.pm] Unlink v/s deletion

Offer Kaye oferk at oren.co.il
Mon Feb 16 04:00:47 PST 2004

> Hi,
> I wanted to not use the rm command (not to make the program OS 
> independent,
> just to make it $PATH independent!), and so, used the following code:
> my $deleted = unlink ('$fifo_dir/$pipe');

Change the single quotes to double quotes:
   my $deleted = unlink ("$fifo_dir/$pipe");

Offer Kaye

More information about the Perl mailing list