Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^3: How to access a variable inside subroutine?

by perlfan (Vicar)
on Sep 05, 2020 at 20:51 UTC ( [id://11121390]=note: print w/replies, xml ) Need Help??


in reply to Re^2: How to access a variable inside subroutine?
in thread How to access a variable inside subroutine?

Very nice, thank you. I was going old school but now this is a lot cleaner and more concise.
  • Comment on Re^3: How to access a variable inside subroutine?

Replies are listed 'Best First'.
Re^4: How to access a variable inside subroutine?
by perlfan (Vicar) on Sep 05, 2020 at 21:20 UTC
    Read the link pointed out by LanX. Best way to learn it is to play around with it.

    Oops replied to the wrong thing. pritesh_ugrankar this message applies to your comment about it now working but you not understanding.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2024-04-25 08:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found