in reply to calling a sub from an if statement
And it seems to work fine.my $msgs = { '200' => 'OK', '400' => 'Bad Request', '403' => 'Forbidden', '404' => 'Not Found', '500' => 'Internal Sever Error', }; sub msg { print "HTTP/1.0 $_[0] $msgs->{$_[0]}\n"; } if (1 == 1) { msg(400); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(jcwren) RE: Re: calling a sub from an if statement
by jcwren (Prior) on Jul 23, 2000 at 23:55 UTC |