PilotinControl has asked for the wisdom of the Perl Monks concerning the following question:
Good Afternoon Fellow Monk!
I moved my script from WinXP to Win7(64 bit) using Activestate Perl on both machines, installing all the same modules and once completed I ran the script with the following errors. Thanks in advance the step in the right direction to find the solutions.
Errors: Use of uninitialized value $file in open at C:/Perl64/lib/IO/File.pm line 187
Can't use an undefined value as a symbol reference at C:\USER\script.pl line 162
Uncaught exception from user code:
Can't use undefined value as a symbol reference at C:\USER\script.pl line 162 structure::begin() called at C:\USER\script.pl line 154
my $tee = new IO::Tee(\*STDOUT, new IO::File(">>$config::logfile")); Line 154: begin(); Line 162: print $tee colored ("---",$config::menucolor); Line 187 from Perl64/lib/IO/File.pm: open($fh, $file);
My config file is in a config folder. The config folder is located in the same folder as script.pl This script works fine under WinXP not so on Win7. Are there that many differences in code styles?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Undefined Value as Symbol reference
by runrig (Abbot) on Mar 07, 2014 at 17:48 UTC | |
by PilotinControl (Pilgrim) on Mar 07, 2014 at 17:55 UTC | |
by runrig (Abbot) on Mar 07, 2014 at 18:39 UTC | |
by PilotinControl (Pilgrim) on Mar 07, 2014 at 18:58 UTC | |
by runrig (Abbot) on Mar 07, 2014 at 19:10 UTC | |
| |
|
Re: Undefined Value as Symbol reference
by kcott (Archbishop) on Mar 07, 2014 at 20:03 UTC |