Thread: Strange
View Single Post
Old Dec 8th, 2005, 2:10 PM   #1
ProjectX
Programmer
 
ProjectX's Avatar
 
Join Date: Feb 2005
Posts: 37
Rep Power: 0 ProjectX is on a distinguished road
Strange

Ok so i was bored and I just started playing around with loops in perl so I did this first
#!C:/PERL/BIN/perl.exe -w

for($i = 0; $i < 50; $i++){
         print ":: $i\n";
}
so then i tried this
#!C:/PERL/BIN/perl.exe -w

for($i = 0; $i < 50; $i++){
         print ":: $i\n";
}
if($i == 50){
     print ":: Begining the second loop...\n\n";
     sleep(3);
     for($me = 0x00; $me < 0xff; $me++){
     print "~ $me\n";
   }
}
and then I get ... you have to run it because its too long.
can anyone tell me why I got numbers instead of 0xff or something like that.
ProjectX is offline   Reply With Quote