oakley has asked for the wisdom of the Perl Monks concerning the following question:
where the subroutine just does the encryption of a text file and moves it to a different directory. I have the encryption subroutine exit and print $@ if it has a value, but the whole thing still exits... ideas? (I ask knowing you are prolly gonna want the actual code here, but sorry - its at work) oakleyif (%hash = sub(%temphash) != 0) { print "ERROR! - sumthin broke\n"; $error = 1; exit; } (nothing important here) return(1) if ($error != 0);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: return codes from embedded subroutines
by chromatic (Archbishop) on Oct 24, 2000 at 02:03 UTC | |
|
Re: return codes from embedded subroutines
by Fastolfe (Vicar) on Oct 24, 2000 at 18:33 UTC | |
|
Re: return codes from embedded subroutines
by oakley (Scribe) on Oct 25, 2000 at 16:13 UTC |