Pease edit your title 'passing hash ref to a function'
Where is p2 script located relative to p1 script.
Are they are they both in the same folder ? they just use
If yes, FindBin can locate the path to p1.pl which can be used to run p2.pl.
poj#!perl # p1.pl use strict; use FindBin; my $p2 = $FindBin::Bin.'/p2.pl'; my $output = `$p2`; print $output;
In reply to Re^2: passing hash ref to a function
by poj
in thread passing hash ref to a function
by ovedpo15
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |