Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
The error is returned when $ARGV[0] isn't passed anythingUse of uninitialized value in string eq at G:\output.pl line 6.
Thanks!#!/usr/bin/perl use warnings; use strict; if ($ARGV[0] eq 'TEST') { print "$ARGV[0]\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: using $ARGV without arguments
by hardburn (Abbot) on Jun 24, 2003 at 14:01 UTC | |
|
Re: using $ARGV without arguments
by broquaint (Abbot) on Jun 24, 2003 at 14:01 UTC | |
|
Re: using $ARGV without arguments
by Bilbo (Pilgrim) on Jun 24, 2003 at 14:07 UTC | |
by Arbogast (Monk) on Jun 24, 2003 at 15:26 UTC | |
by hsmyers (Canon) on Jun 25, 2003 at 14:15 UTC | |
|
Re: using $ARGV without arguments
by tcf22 (Priest) on Jun 24, 2003 at 14:05 UTC |