Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: passing hash ref to a function

by alexander_lunev (Pilgrim)
on Mar 16, 2018 at 20:11 UTC ( [id://1211079]=note: print w/replies, xml ) Need Help??


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).

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1211079]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (1)
As of 2024-04-25 03:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found