This is a newbie question. Please let me know how to fix this error.
tia
sub get_line {
print $_[0];
chomp (my $line =<STDIN>);
line$;
}
my $source = &get_line ("which source file? ");
open IN, $source or die "can't open '$source' for input: $!";
my $dest =&get_line ("what destination...
This is a newbie question. I am getting errors from the codes below and not sure what I am missing.
tia
#!/usr/bin/perl -w
use strict;
use warnings;
use diagnostics;
my $secret = int (1 + rand 100);
while (1) {
print "Please enter a guess from 1 to 10: ";
chomp (my $guess =<STDIN>);
if...
This is a newbie question, but I am not sure why I am getting this error.
tia
Use of uninitialized value in addition (+) at line 18, <STDIN> line 6.
Use of uninitialized value in concatenation (.) or string line 21, <STDIN> line 6.
print "Enter column: \n";
chomp (my @width =<STDIN>)...
I am curious to know what is the difference between Perl and BioPerl. My question is not about BioPerl being used for what. BioPerl clearly indicates it is for what. Are there any differences in terms of ways of coding things? BioPerl is running on the top of Perl with certain...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.