Use perl -w to turn warnings on. Include "use strict;" to enforce variable declaration. See perlstyle for tips.#!/usr/local/bin/perl
There is no real reason to use chop()...get in the habit of using chomp(), and use chop() only when you really mean it.$hour=<STDIN>;chop($hour);
I realize this has been commented out, but you should not have to use goto. A case can be made for when to use goto, but given perl's great flexibility in flow-control, you can plan to never use it and be fairly safe.#goto LABELEND;
You should always report error conditions on file opens. Try : open(NAMEONED, $onedname) or die "Can't open $onedname: $!";if (open(NAMEONED,$onedname))
When posting code and asking for help, remove all useless, commented out lines.#use PGPLOT; # Load PGPLOT module #print "\nTesting simple point plot...\n\n"; #print "PGPLOT module version $PGPLOT::VERSION\n\n";
This is somewhere where a goto is unnecessary. Look up line labels, next and last in perlman:perlsyn$k++;goto NEXTLINE;
In reply to Re: debug the error!!!
by swiftone
in thread debug the error!!!
by Anonymous Monk
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |