spadacciniweb has asked for the wisdom of the Perl Monks concerning the following question:
and in the same directory, the file "config.conf" as1 #!/usr/bin/perl -w 2 3 push @INC, "."; 4 require "config.conf"; 5..7 8 print $verbose;
Question: if run "mal.pl"... why the output is:1 $verbose = 1;
thank youName "main::verbose" used only once: possible typo at ./mal.pl line +8.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: main and external script
by ikegami (Patriarch) on Dec 02, 2005 at 18:15 UTC | |
|
Re: main and external script
by gu (Beadle) on Dec 02, 2005 at 18:52 UTC | |
|
Re: main and external script
by psychotic (Beadle) on Dec 02, 2005 at 19:16 UTC | |
by gu (Beadle) on Dec 02, 2005 at 19:19 UTC |