moked has asked for the wisdom of the Perl Monks concerning the following question:
Thanks$time=$16; # Time Sample @_1= split "\,",$16; if($#_1 eq 0){ $time = int ($time); } if($#_1 eq 1){ $time=$_1[0]; $time=~ s/\,//g; $time*=1000; } if($#_1 eq 2){ $time=1000;} if($#_1 eq 3){$time=1000;}
update (broquaint): added <code> tags
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: split and compare
by castaway (Parson) on May 20, 2003 at 11:04 UTC | |
by arthas (Hermit) on May 20, 2003 at 12:58 UTC | |
|
Re: split and compare
by Skeeve (Parson) on May 20, 2003 at 10:56 UTC | |
|
Re: split and compare
by bart (Canon) on May 20, 2003 at 10:52 UTC | |
|
Re: split and compare
by pzbagel (Chaplain) on May 20, 2003 at 16:26 UTC |