CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate:
Strange output why ?

 



sachinonnet
New User

May 22, 2008, 5:12 AM

Post #1 of 1 (466 views)
Strange output why ? Can't Post

this code gives strange output why ?



Code snippet

---------------------------------

#!/usr/bin/perl

$a=15.1;

$b=100+15.1-100;

if ($a == $b)

{

print "$a is equal to $b";

}

else

{

print "Not equal";

}

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives