in reply to A cleaner way of scoping variables
my $bar = "true" if $foo;
my $bar = $foo ? "Winner!!!" : "Please play again.";
That's not so bad, is it?my ( $foo, $bar, $baz, $wumpus ); # or # my ( $foo, $bar, $baz, $wumpus ) = ( 5555, "Blossom Garden Rd", "San + Jose, CA", 95123 ); if ( $tiddly_rump ) { $foo .... $bar .... $baz .... $wumpus .... }
--
TTTATCGGTCGTTATATAGATGTTTGCA
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: A cleaner way of scoping variables
by ysth (Canon) on Aug 10, 2004 at 01:43 UTC | |
by bunnyman (Hermit) on Aug 10, 2004 at 14:39 UTC |