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