in reply to Passing array pointer through script input
It's nonsense. ;)
If you try `perl myscript.pl \@arr`; the \ quotes the @ and you end up with '@arr'. You could:
my $ref = \@arr; `perl myscript.pl $ref`;
but Perl would stringify $ref to something of the form: ARRAY(0x182df38).
However, none of this is solving your real problem. But then, you haven't actually told us what your real problem is. Take a couple of steps back in your thinking and tell us what you are trying to solve with this technique.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Passing array pointer through script input
by vit (Friar) on Aug 20, 2008 at 22:44 UTC | |
by GrandFather (Saint) on Aug 20, 2008 at 22:49 UTC | |
by vit (Friar) on Aug 20, 2008 at 23:06 UTC | |
by GrandFather (Saint) on Aug 20, 2008 at 23:12 UTC | |
by vit (Friar) on Aug 20, 2008 at 23:30 UTC | |
| |
by Perlbotics (Archbishop) on Aug 20, 2008 at 23:16 UTC |