Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^4: Passing a hash plus some strings to a subroutine

by Anonymous Monk
on Jan 11, 2026 at 01:10 UTC ( [id://11167121]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Passing a hash plus some strings to a subroutine
in thread Passing a hash plus some strings to a subroutine

> you have done something in the sub before that line and hence that line is not "first"

Thank you hippo! That is exactly the case. Why is that not a PBP? I have good reasons for putting code before dealing with parameters in subs, like using IPC::Cmd to check if we can run an executable:

sub something { return 'oops' unless can_run('something'); my %arg = @_; ... }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (3)
As of 2026-04-11 23:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.