BadMojo has asked for the wisdom of the Perl Monks concerning the following question:
sub LocalTest { my $returnval=0; my $msg=SetMessage(); use Socket; use Sys::Hostname; my $host = hostname(); SendMessage( $host, $msg); print "Did your rescive the message?(y/n): "; $key=<STDIN>; chomp $key; if ( $key eq y || $key eq Y ){ <b>return $returnval;</b> } else { $returnval=1; return $returnval; } }
20050505 Janitored by Corion: Put code in between code tags
BadMojo
mford@badmojo.biz
www.badmojo.biz
!=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-!
When something works but shouldn't thats BADMOJO baby.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Something is wrong
by bart (Canon) on May 05, 2005 at 13:58 UTC | |
|
Re: Something is wrong
by deibyz (Hermit) on May 05, 2005 at 14:01 UTC | |
|
Re: Something is wrong
by polettix (Vicar) on May 05, 2005 at 14:39 UTC | |
|
Re: Something is wrong
by dragonchild (Archbishop) on May 05, 2005 at 14:04 UTC | |
|
Re: Something is wrong
by cog (Parson) on May 05, 2005 at 14:12 UTC |