User Profile

Collapse

Profile Sidebar

Collapse
sabie
sabie
Last Activity: Apr 5 '12, 09:02 PM
Joined: Mar 14 '12
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • sabie
    replied to Error: Use of uninitialized value in print
    in Perl
    Again... got it!!
    Chomp() did the job.
    See more | Go to post

    Leave a comment:


  • sabie
    started a topic Error: Use of uninitialized value in print
    in Perl

    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"
    ...
    See more | Go to post

  • sabie
    replied to I just cant find what's wrong with this code
    in Perl
    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;
    ...
    See more | Go to post

    Leave a comment:


  • sabie
    replied to I just cant find what's wrong with this code
    in Perl
    I think I've got it !!! a very small logical mistake!!
    See more | Go to post

    Leave a comment:


  • sabie
    started a topic I just cant find what's wrong with this code
    in Perl

    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++)
    ...
    See more | Go to post
No activity results to display
Show More
Working...