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
In reply to Re: Pass class object as argument to perl script
by ccn
in thread Pass class object as argument to perl script
by gnvivek
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |