Re: store Array in hash ?



On Thu, 2006-30-03 at 13:23 -0800, John W. Krahn wrote:
Did you actually try that?

$ perl -le'my $test{$setup}{opt} = q[OK]; print $test{$setup}{opt}'
syntax error at -e line 1, near "$test{"
Execution of -e aborted due to compilation errors.

Oops. Make that:

$test{$setup}{opt} = 'OK';

--
__END__

Just my 0.00000002 million dollars worth,
--- Shawn

"For the things we have to learn before we can do them,
we learn by doing them."
Aristotle

* Perl tutorials at http://perlmonks.org/?node=Tutorials
* A searchable perldoc is at http://perldoc.perl.org/



.



Relevant Pages

  • Re: a perl script crashed my mac!
    ... I have never seen an OS X computer crash until ... >> kernel panic because it doesn't compile, let alone execute. ... syntax error at frog line 12, ... Execution of frog aborted due to compilation errors. ...
    (comp.lang.perl.misc)
  • Re: Corrupted Data
    ... syntax error at - line 6, near ",>" ... had compilation errors. ... don't want to show us the real code. ... Peter Scott ...
    (perl.beginners)
  • include problem with dxutgui.h
    ... of compilation errors in "dxutgui.h". ... The error messages start with: " syntax error: identifier ...
    (microsoft.public.win32.programmer.directx.graphics)
  • question about ( () if () ) while ();
    ... syntax error at -e line 1, ... Execution of -e aborted due to compilation errors. ... i am curious as to why this error crops up... ...
    (perl.beginners)
  • Re: Math::BigFloat oddities
    ... syntax error at -e line 1, at EOF ... Execution of -e aborted due to compilation errors. ...
    (comp.lang.perl.misc)