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 risk. The alternative below is much 
better.

> or:
>
>   # prog1
>   use Storable 'freeze';
>   $ENV{ARRAY} = freeze \@array;
>
>   # prog2
>   use Storable 'thaw';
>   @array = @{ thaw $ENV{ARRAY} };
>
> There are many other serialization modules out there.  Search CPAN for
> them.

-- 
Ondrej Par
Internet Securities
Software Engineer
e-mail: [EMAIL PROTECTED]
Phone: +420 2 222 543 45 ext. 112


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to