Gack!! Add to that no strict, no warnings, no taint checking, no testing to verify that file opens were successful. And later in the script, they print to STDOUT. Um, that's the default, boys. And they to call themselves "Ovid".while ( $line = <STDIN> ) { print OUT $line; chop $line; ( $name, $value ) = split(/=/,$line,2); if ( $name eq "userid" ) { $userid = $value; next; } if ( $name eq "password" ) { $password = $value; next; } if ( $name eq "originAddress" ) { $originIPAddress = $value; next; } if ( $name eq "originPort" ) { $originPort = $value; next; } if ( $name eq "targetAddress" ) { $targetAddress = $value; next; } if ( $name eq "targetPort" ) { $targetPort = $value; next; } # ignore unrecognized things -- don't break on future capabilities }
I'm so embarrassed :)
Cheers,
Ovid
Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Hanging my head in shame
by extremely (Priest) on Nov 30, 2000 at 11:02 UTC | |
by redmist (Deacon) on Nov 30, 2000 at 13:46 UTC | |
|
Re: Hanging my head in shame
by decnartne (Beadle) on Nov 30, 2000 at 19:32 UTC | |
by Fastolfe (Vicar) on Nov 30, 2000 at 19:41 UTC | |
by decnartne (Beadle) on Nov 30, 2000 at 21:55 UTC | |
by Ovid (Cardinal) on Nov 30, 2000 at 22:45 UTC | |
|
Re: Hanging my head in shame
by mrmick (Curate) on Nov 30, 2000 at 19:58 UTC |