in reply to Pass class object as argument to perl script
It is possible if you call secondscript with do command.
# firstscript.pl my $object = new Object; do 'secondscript.pl';
# secondscript.pl print $object;
There is no passing argument but variables declared in firstscript are visible in secondscript
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Pass class object as argument to perl script
by shmem (Chancellor) on Oct 31, 2008 at 08:30 UTC | |
by ccn (Vicar) on Oct 31, 2008 at 08:38 UTC |