Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: String interpolation

by reneeb (Chaplain)
on Dec 09, 2004 at 12:56 UTC ( [id://413511]=note: print w/replies, xml ) Need Help??


in reply to String interpolation

use " instead of ':
my $str = "params.$idx.arg";

That means for your code:
for(0..10){ my $str = "params.$idx.arg"; do_something($str); }

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2024-03-19 10:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found