perl.beginners
[Top] [All Lists]

Re: variable help

Subject: Re: variable help
From: John W. Krahn
Date: Tue, 04 Mar 2008 12:51:07 -0800
Newsgroups: perl.beginners


Irfan.Sayed@xxxxxxxxxxxxx wrote:
Hi All,

Hello,

How to find out the specific variable contains integer value. In my
script ,variable is storing some value but I want to find out whether
that value is string or integer.

perldoc -q integer

Also look for the function looks_like_number() in:

perldoc Scalar::Util



John
--
Perl isn't a toolbox, but a small machine shop where you
can special-order certain sorts of tools at low cost and
in short order.                            -- Larry Wall

<Prev in Thread] Current Thread [Next in Thread>