Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
it prints the filname ok, but never prints $muse File::Find; find (\&wanted, "./categories/"); sub wanted { $m = -M "$File::Find::name"; print "M = $m <br>"; print<<ENDHTML $File::Find::name<br><br> ENDHTML if (-M $File::Find::name >= 7){ unlink $File::Find::name; } } # End
2001-06-16 Edit by Corion : Changed title
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: -M thing
by stephen (Priest) on Jun 11, 2001 at 22:33 UTC | |
|
Re: -M thing
by lemming (Priest) on Jun 11, 2001 at 22:36 UTC | |
|
Re: -M thing
by suaveant (Parson) on Jun 11, 2001 at 22:29 UTC |