in reply to Idiomatic Perl
Cheers - L~R#!/usr/bin/perl use strict; use warnings; use Scalar::Util 1.10 'looks_like_number'; my $total = 4; my $increment = 'blah'; $total += $increment || 0 if looks_like_number( $increment );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Idiomatic Perl
by flyingmoose (Priest) on Mar 02, 2004 at 20:12 UTC | |
by Limbic~Region (Chancellor) on Mar 02, 2004 at 20:24 UTC | |
by flyingmoose (Priest) on Mar 03, 2004 at 00:11 UTC |