rbm1213 has asked for the wisdom of the Perl Monks concerning the following question:
Remove the || print... and it deletes all files globbed.$prefix=test; $runid=12; unlink glob("$prefix$runid.*") || print"Error removing files $!\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: unlink glob
by ikegami (Patriarch) on Feb 28, 2008 at 00:22 UTC | |
|
Re: unlink glob
by tirwhan (Abbot) on Feb 27, 2008 at 22:24 UTC | |
|
Re: unlink glob
by kyle (Abbot) on Feb 27, 2008 at 22:36 UTC | |
|
Re: unlink glob
by Anonymous Monk on Feb 28, 2008 at 12:28 UTC |