Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Evaluate variable while using

by choroba (Cardinal)
on Oct 21, 2022 at 12:22 UTC ( [id://11147565]=note: print w/replies, xml ) Need Help??


in reply to Evaluate variable while using

The problem is that
my $str = "Hello ".$a;
populates $str using the current value of $a. $str doesn't remember $a was used to construct it, so changing $a doesn't have any influence on its value.

map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2024-03-28 20:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found