stuffy has asked for the wisdom of the Perl Monks concerning the following question:
my $wind = $m->WIND_MPH; my $w_dir = $m->WIND_DIR_ENG; my $gust = $m->WIND_GUST_MPH; my $gusting; if ($gust eq "") { $gusting ="not gusting"; } else { $gusting ="gusting to $gust"; } print "$gusting";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: passing data to variable in if statment
by FunkyMonk (Bishop) on May 06, 2008 at 21:02 UTC | |
by stuffy (Monk) on May 06, 2008 at 21:13 UTC | |
by GrandFather (Saint) on May 07, 2008 at 00:53 UTC | |
|
Re: passing data to variable in if statment
by Paladin (Vicar) on May 06, 2008 at 21:00 UTC |