and
perl -e '$oldimage =
"/usr/local/billmax/html/images/day-0020a6-5a9bfc*";$files = unlink glob
$oldimage;printf "Files %d\n",$files;'
Files 1
works
------------------------------------------------------------------------
# cat test.pl
#! /usr/bin/perl -w
use strict;
my $oldimage = "/usr/local/billmax/html/images/day-0020a6-5a9bfc*";
my $files = unlink glob $oldimage;
print "Files $files\n";
------------------------------------------------------------------------
fails
John Ackley wrote:
thanks to all who replied
down to this
# perl -e "print unlink glob
'/usr/local/billmax/html/images/day-0020a6-5a9bfc*';"
1
but in script
my $oldimage = "/usr/local/billmax/html/images/day-0020a6-5a9bfc*";
my $files = unlink glob $oldimage;
fails
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>