Help for this page

Select Code to Download


  1. or download this
    @eachnum = split (//, $binary);
  2. or download this
    print("Not a binary number!\n");exit;}
    
  3. or download this
    die ("Not a binary number");
    
  4. or download this
    #!/usr/bin/perl -w
    use strict;
    ...
    exit;
    }
    #eNd
    
  5. or download this
    print "\n\nEnter a binary number : ";
    my $binary=<STDIN>;
    
  6. or download this
    chomp ($binary);
    die ("not binary") if $binary =~/[^01]/;
    &convb2d ($binary);
    
  7. or download this
    chomp (my $binary=<STDIN>);