in reply to Re^2: Data::Dumper is returning empty
in thread Data::Dumper is returning empty
I am getting an error when I try to run this code. It says
Search pattern not terminated at ./sec-test.pl line 166 (#1) (F) The lexer couldn't find the final delimiter of a // or m{} construct. Remember that bracketing delimiters count nesting level. Missing the leading $ from a variable $m may cause this error. Note that since Perl 5.9.0 a // can also be the defined-or construct, not just the empty search pattern. Therefore code written in Perl 5.9.0 or later that uses the // as the defined-or can be misparsed by pre-5.9.0 Perls as a non-terminated search pattern. Uncaught exception from user code: Search pattern not terminated at ./sec-test.pl line 166. at ./sec-test.pl line 166
line 166 is the map $_//'[undef]', line
Also how would I return to main so I could run the following code section, or code similar to what I have below?
my %nicdata = networkInfo($platform); for (@nicdata) { print "Device: $nic{device} has the IP Address of $nic{ip}\n\tMask +: $nic{mask}\n\tBroadcast: $nic{bcast}\n"; print "Device: $nic{device} also has IPv6 address of $nic{ip6}\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Data::Dumper is returning empty
by ikegami (Patriarch) on Jan 19, 2010 at 19:30 UTC | |
by MikeDexter (Sexton) on Jan 19, 2010 at 19:47 UTC | |
by ikegami (Patriarch) on Jan 19, 2010 at 19:49 UTC | |
by MikeDexter (Sexton) on Jan 19, 2010 at 19:53 UTC | |
by ikegami (Patriarch) on Jan 19, 2010 at 20:21 UTC | |
| |
by MikeDexter (Sexton) on Jan 19, 2010 at 19:38 UTC | |
by ikegami (Patriarch) on Jan 19, 2010 at 19:46 UTC | |
by MikeDexter (Sexton) on Jan 19, 2010 at 19:51 UTC | |
by ikegami (Patriarch) on Jan 19, 2010 at 19:53 UTC | |
|