kingram has asked for the wisdom of the Perl Monks concerning the following question:
I get this error
Can't use string ("3") as an ARRAY ref while "strict refs" in use at ./ntt line 185 (#1) (F) Only hard references are allowed by "strict refs". Symbolic references are disallowed.When I use this code in a sub:
The data passed into the sub as presented by Dumper:sub test(){ print "\$#{\@_} = $#{@_}\n"; }
I do not understand the help message so I'm stuck$VAR1 = 'insert into test (foo1, foo2, foo3, foo3, foo5, foo6) VALUES +(?,?,?,?,?,?) '; $VAR2 = 'datum1'; $VAR3 = 'datum2'; $VAR4 = 'datum3'; $VAR5 = 'datum4'; $VAR6 = 'datum5'; $VAR7 = 'datum6';
Would appreciate a little nudge of understanding here.
I did take a look at perlref, but I'm still stumped.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Can't use string blah as an ARRAY ref
by tobyink (Canon) on Jul 30, 2012 at 07:37 UTC | |
by kingram (Acolyte) on Jul 30, 2012 at 07:45 UTC | |
Re: Can't use string blah as an ARRAY ref
by jwkrahn (Abbot) on Jul 30, 2012 at 14:18 UTC |
Back to
Seekers of Perl Wisdom