Ben Curran <[EMAIL PROTECTED]> writes:
> Trying to alter the value of $testfile depending on how many arguments are
> given, using the following:
>
> if (@ARGV == 2) {
> chdir $ARGV[0];
> my $testfile = $ARGV[1];
> }
> else {
> my $testfile = $ARGV[0];
> }
Help yourself and your readers out. Use some whitespace!!!
Let form follow function.
if (@ARGV == 2) {
chdir $ARGV[0];
my $testfile = $ARGV[1];
} else {
my $testfile = $ARGV[0];
}
--
Michael R. Wolf
All mammals learn by playing!
[EMAIL PROTECTED]
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]