Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
It prints...$fileName = "../../20080101.txt"; printf ("File to be deleted: [%s]\n", "$fileName"); unlink( $fileName );
and deletes (unlinks) the file.File to be deleted: [../../20080101.txt]
It prints...$fileName = $q->param('deletetarget'); printf ("File to be deleted: [%s]\n", "$fileName"); unlink( $fileName );
but doesn't delete (unlink) the file.File to be deleted: [../../20080101.txt]
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Why aren't these equivalent?
by tilly (Archbishop) on Jul 12, 2008 at 00:46 UTC | |
by Anonymous Monk on Jul 12, 2008 at 01:05 UTC | |
by massa (Hermit) on Jul 12, 2008 at 09:11 UTC | |
by Anonymous Monk on Jul 14, 2008 at 19:06 UTC | |
|
Re: Why aren't these equivalent?
by Joost (Canon) on Jul 12, 2008 at 00:42 UTC | |
by Anonymous Monk on Jul 12, 2008 at 00:54 UTC | |
by Joost (Canon) on Jul 12, 2008 at 01:07 UTC | |
by Anonymous Monk on Jul 12, 2008 at 01:41 UTC | |
by tinita (Parson) on Jul 12, 2008 at 14:37 UTC | |
|
Re: Why aren't these equivalent?
by holli (Abbot) on Jul 12, 2008 at 05:12 UTC | |
|
Re: Why aren't these equivalent?
by jethro (Monsignor) on Jul 12, 2008 at 00:52 UTC |