On Saturday 14 July 2001 22:18, Jeff 'japhy' Pinyan wrote:
>
> # prog1
> use Data::Dumper;
> $ENV{ARRAY} = Dumper \@array;
>
> # prog2
> @array = @{ eval $ENV{ARRAY} };
>
I would be really careful with that axe :) evaluating anything that you get
from enviroment variable is a security
On Jul 14, P. Schaub said:
>is it possible to pass an array referenz
>by an environment variable to another perl script ?
No. The environment is not magical like that -- the place in memory of
the reference in program A is not special to program B.
You'll have to send a serialized version som
Hi out there,
is it possible to pass an array referenz
by an environment variable to another perl script ?
no1.pl
my @Array=('A','B','C');
$ENV{Array}=\@Array;
`./no2.pl`;
no2.pl
foreach my $Part (\@{ENV{Arra