Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
So if file does not exist skip. Is this possible? Thanksforeach $id (@row) { #if ($id != 113) { print "id = $id"; use Fcntl 'O_RDWR'; tie @array, 'Tie::File', "../XML/$id.xml", mode => O_RDWR; splice @array, 2, 0, "<database_id=\"gl:redunant\">"; untie @array;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: if file does not exist
by Aristotle (Chancellor) on Nov 21, 2005 at 17:17 UTC | |
by Anonymous Monk on Nov 21, 2005 at 17:27 UTC | |
|
Re: if file does not exist
by philcrow (Priest) on Nov 21, 2005 at 17:19 UTC | |
|
Re: if file does not exist
by jdhedden (Deacon) on Nov 21, 2005 at 17:18 UTC | |
by Your Mother (Archbishop) on Nov 21, 2005 at 19:00 UTC | |
|
Re: if file does not exist
by holli (Abbot) on Nov 21, 2005 at 17:18 UTC |