Re: code help
- From: Jürgen Exner <jurgenex@xxxxxxxxxxx>
- Date: Thu, 28 Feb 2008 03:10:28 GMT
jammer <jameslockie@xxxxxxxx> wrote:
Why does this give a syntax error?
# not 2 arguments, print usage
if ($#ARGV != 1) {
print "\nusage: " . $ARGV[0] . "\[backupDir\] \
[backupConfigFile\]\n";
}
It doesn't for me:
C:\tmp>type t.pl
# not 2 arguments, print usage
if ($#ARGV != 1) {
print "\nusage: " . $ARGV[0] . "\[backupDir\] \
[backupConfigFile\]\n";
}
C:\tmp>perl -c t.pl
t.pl syntax OK
jue
.
- References:
- code help
- From: jammer
- code help
- Prev by Date: code help
- Next by Date: Re: code help
- Previous by thread: code help
- Next by thread: Re: code help
- Index(es):