Again... got it!!
Chomp() did the job.
User Profile
Collapse
-
Error: Use of uninitialized value in print
Hi,
I just cant find wats wrong in this tiny piece of code.
All I want to fetch the number associated with a key in the hash. The key has to be entered my user during execution. Here is the code:
Code:#!usr/bin/perl #chap3ex3.pl use warnings; use strict; my %tele_directory = ("Mine" => "1911", "Moms" => "1911", "Dads"
-
I've actually trying to convert decimal to binary and I did it now !!!
the code:
Code:#!usr/bin/perl #scrap.pl use warnings; use strict; my $test; THERE: print "Enter a decimal number less than 256: "; my $deca=<STDIN>; if($deca>=256) { print "number entered is greater than or equal to 256. please enter again!\n"; goto THERE;
Leave a comment:
-
-
I just cant find what's wrong with this code
Hi,
i am a beginner in Perl. All I want to do is a simple operation of saving the reminders of a continuous division of same number until the quotient becomes 1.
I hope the code is logically correct but nothing is showing in the output.
here is the code:
Code:#!usr/bin/perl #scrap.pl use warnings; use strict; my $test=27; my @arr1; for(my $i=0;$test<=1;$i++)
No activity results to display
Show More
Leave a comment: