jimbus has asked for the wisdom of the Perl Monks concerning the following question:
As you grow to know me, you'll come to know that most of the issues I have are typoes or stupid newbie tricks, but I can't see this one. yet.
Why is the following code tripping the or condition if it it successfully moving the file? I've printed out the string and the variables are expanding coreectly, cutting an pasting the output to the command line works without an error... I'm stumped.
system("mv $filename $localpath/archives/") or Die ("data load","YTS +MSC","High","Could not move file: $filename for successful exi t: $@");
"Die", BTW is from a package I've created that writes to a log file and DB table before exiting.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Do and Die
by japhy (Canon) on Aug 15, 2005 at 18:54 UTC | |
|
Re: Do and Die
by jhourcle (Prior) on Aug 15, 2005 at 18:56 UTC | |
|
Re: Do and Die
by Transient (Hermit) on Aug 15, 2005 at 18:57 UTC | |
|
Re: Do and Die
by Old_Gray_Bear (Bishop) on Aug 15, 2005 at 19:06 UTC | |
|
Re: Do and Die
by sk (Curate) on Aug 15, 2005 at 19:04 UTC | |
by Transient (Hermit) on Aug 15, 2005 at 19:10 UTC | |
|
Re: Do and Die
by jimbus (Friar) on Aug 15, 2005 at 19:25 UTC | |
|
Re: Do and Die
by BaldPenguin (Friar) on Aug 15, 2005 at 18:52 UTC | |
by jimbus (Friar) on Aug 15, 2005 at 19:10 UTC |