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

Re: why is $1 cleared at end of an inline sub?

by haukex (Archbishop)
on Sep 16, 2021 at 12:38 UTC ( [id://11136828]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub do_something_else {
        my $foo = "quzbaz";
    ...
        do_something_else();
        print "$1\n";           # still prints "oo", not "u"
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (6)
As of 2024-04-19 08:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found