SPUG: Problem deleting files

Dave Campbell campbell at geospiza.com
Thu Nov 30 12:55:50 CST 2000


> Ok.. I'm having a problem deleting files. I have tried:
> 
> $oldfile="../html/wrt_archive/weekly_archive/*to$twodaysback*\.*";


1) are you sure that your are in the right directory to be using the
relative path shown?  Why not use absolute paths?
2) I think the syntax for using wildcard name expansion with unlink is:
unlink </tmp/testfiles/*>;   #So sayeth the camel...


-dave

 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     POST TO: spug-list at pm.org       PROBLEMS: owner-spug-list at pm.org
      Subscriptions; Email to majordomo at pm.org:  ACTION  LIST  EMAIL
  Replace ACTION by subscribe or unsubscribe, EMAIL by your Email-address
 For daily traffic, use spug-list for LIST ;  for weekly, spug-list-digest
  Seattle Perl Users Group (SPUG) Home Page: http://www.halcyon.com/spug/





More information about the spug-list mailing list