in reply to Re: passing hash ref to a function
in thread passing hash ref to a function

use Cwd 'cwd'; my $path_to_p2 = cwd() . '/p2.pl';

Replies are listed 'Best First'.
Re^3: passing hash ref to a function
by haukex (Archbishop) on Mar 17, 2018 at 10:17 UTC
    my $path_to_p2 = cwd() . '/p2.pl';

    I don't see the advantage of this over just the relative 'p2.pl' (unless the script is chdiring over its run).