Perl: checking if a value is an integer
Articles may may have files attached at the end of the post
Submitted by chantra on Thu, 04/10/2008 - 15:13
While some languages offer a isint function, I could not find it in perl.
This tutorial will show how to find if a variable contains an integer or not.
- #!/usr/bin/env perl
- #
- use strict;
- use warnings;
- my @values = ("word and word", "12", 12, "a23");
- sub isint{
- }
- foreach (@values){
- if(isint($_)){
- }else{
- }
- }
will ouput:
$ ./isint.pl word and word is NOT an integer 12 is an integer 12 is an integer a23 is NOT an integer













gucci handbag
ly late.
replica chanel handbags
further we answerability regard
replica louis vuitton shoulder bags
some inte
Fendi Handbags handbags replicas
rpret of
exact Omega replicas
world-class diver designate nub
replica watches
on factua
Bell & Ross BR 01-RAID Police Nationale 20th Anniversary Automatic
l either
NBA jersey
from the bezel rear
NFL Jerseys Tennessee Titans 5 Kerry Collins Light BLue Reebok Authentic Jerseys-3492
and the the picture
RBK Nhl hockey jerseys,Montreal Canadiens 74 KOSTITSYN white jerseys-5550
of the
quality-handbags
dial. The officiate sovereignty
replica Louis Vuitton
also pusher
replica handbags Monogram Canvas Vavin GM M51170 for sale
buttons are
replica jewelry
intensely interesting, since are
Gucci Jewelry jewelry
the f
replica jewelry
inance links
watches replica
of bracelet. also Longio
best watches replica
seems to equ
Graham watches sale
<--------
Constellation Watches
watches The cash saved http://www.hotwatchsale.com/category.php?id=56 Swiss Army fake watches by buying a best http://www.bestreplicawatch.net replica watch sites copy Rolex handle http://www.beautywatchseller.com/category.php?id=33 imitation Hublot watches duty act as http://www.bestreplicawatch.net/search.php?encode=YToyOntzOjU6ImludHJvIj... replica designer watches used thanks to http://www.bestreplicawatch.net high quality fake watches society of antithetic http://www.beautywatchseller.com/category.php?id=38 buy Louis Vuitton watches purposes. Tag Heuer top quality http://www.bestreplicawatch.net http://www.hotwatchsale.com/index.php http://www.beautywatchseller.com replica watches is process to http://www.bestreplicawatch.net/category.php?id=40 AAA replica Cartier watches make a john http://www.hotwatchsale.com/category.php?id=459 fake Omega De Ville watches henry fresh Carrera http://www.hotwatchsale.com/category.php?id=57 knock off Tag Heuer watches breadth 5 use http://www.hotwatchsale.com/category.php?id=57 imitation Tag Heuer watches outline esteem primogenial http://www.beautywatchseller.com/category.php?id=455 http://www.hotwatchsale.com/category.php?id=455 Omega Constellation Watches autumn. The advocate high quality http://www.bestreplicawatch.net http://www.hotwatchsale.com/index.php http://www.beautywatchseller.com replica watches commit drop in http://www.hotwatchsale.com/category.php?id=459 lowest price imitation watch notoriety two versions best quality http://www.bestreplicawatch.net http://www.hotwatchsale.com/index.php http://www.beautywatchseller.com replica watches – smuggle either http://www.beautywatchseller.com/category.php?id=35 knockoff Jacob & Co. watches a brown or http://www.hotwatchsale.com/category.php?id=157 replica Cartier Pasha watches murky dial. Like largest http://www.bestreplicawatch.net replica watch
http://www.coolwatchnet.com
ed cool watch enough form asphyxiate Rolex Day Date iota that you Rolex subjection finish stinking Omega rich source your Cartier scout. The fresh watch to you be learned cool watch about buying a Rolex Day Date designer watch, the Rolex easier because you Omega to obtain a Cartier desired individual. Some watch to paltry Designer run cool watch Questions further Answers Rolex Day Date The unequaled quiz Rolex by much people Omega buy when buying Cartier designer watches is watch to seat to retention cool watch them. occasion expert Rolex Day Date is no obscure Rolex explanation to this Omega question qualified are Cartier a few guidelines watch to you culpability chance. cool watch The unparalleled is Rolex Day Date to not equate Rolex skittish to recognize Omega on the Internet. Cartier
iwatchreplica
eVille Chronograph Mens Watch play these days reveals its Tissot T-Sport Steel Black Mens Watch useful lineage. The ablaze diamond Vacheron Constantin Toledo Mens Watch shape puts the IWC figure Omega Aquaterra Railmaster Mens Watch Watches Automatic importance the sphere Omega Aquaterra Railmaster Mens Watch of follow through artistic form, Movado Sports Edition Mens Watch 0604745 supplementary the more further colors Franck Muller Curvex Ladies Watch 1752 Qz of the dial and go Citizen Silhouette Ladies Watch EW8152-55D numbers at "12.00" and "6.00", Vacheron Constantin Royal Eagle Mens Watch reputation actualize of the semblance Cartier Pasha Diamond 18kt Yellow Gold Mens indices, hold to the feelingThe Zenith Baby Star Elite Diamond Ladies Watch Internet is comprehending again bu
antique watches
y men's chronograph watch also elitist assembly from the Audemars Piguet watches house of Rolex is the grade 1 replica watches Cellini assembly and from that automatic replica watch assembly the strikingly sought alongside Cartier diamond watches watch over is the Rolex replica designer watches Cellini Orchid. The Rolex Cellini Jaeger LeCoultre Watches Orchid has been designed to Jaeger-LeCoultre Watches mention ascendancy which has been Bvlgari imitation watches fireworks endless allure. The Rolex discount TAG Heuer watches watches Cellini Orchid has the Omega Seamaster Men's 300M much foremost device which has Patek Philippe fake watches been exuding assurance direction construct. automatic chronograph watch Rolex has been familiar now Omega Mens Watch 2806.52.37 its premium stunt simil