passing an array ref by environment variables

2001-07-14 Thread P. Schaub
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

passing arguments

2001-07-10 Thread P. Schaub
Hi List, I am calling a perl script within another perl script. What is the best way to pass arguments to the second one ? Is it possible to pass arrays and hashs (or at least refs) ? So far I am calling the second script like @result=`script2.pl $arg1 $arg2 $arg3` but I guess this is quite ugly.

setuid Problem

2001-07-07 Thread P. Schaub
I need a perl script to access directorys that are not world readable. I did set the "setuid" bit for this script. When I start it says: Cant´t do suid My OS is SuSE Linux 7.0 (Kernel 2.2) any help welcome thanx Patrik