use Cwd 'cwd'; my $path_to_p2 = cwd() . '/p2.pl'; [download]
In reply to Re^2: passing hash ref to a function by alexander_lunev in thread passing hash ref to a function by ovedpo15