N
Nathan.Neff
Hello,
Is there a way to be warned of symbolic references when I run
"perl -c"?
Example:-----------------------------
#!/usr/bin/perl
# This code dies when it comes to print $$var_name.
# perl -c doesn't say anything.
# How can I get perl to warn me before I run the script?
use strict;
my $YES = "The quick brown fox";
my $var_name = "YES";
print "$$var_name";
#Thanks
#--Nate
Is there a way to be warned of symbolic references when I run
"perl -c"?
Example:-----------------------------
#!/usr/bin/perl
# This code dies when it comes to print $$var_name.
# perl -c doesn't say anything.
# How can I get perl to warn me before I run the script?
use strict;
my $YES = "The quick brown fox";
my $var_name = "YES";
print "$$var_name";
#Thanks
#--Nate