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

Re: String interpolation

by fglock (Vicar)
on Dec 09, 2004 at 13:03 UTC ( [id://413515]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    
    my $str = sub { "params.$_[0].arg" };
    ...
    for my $idx (0..10) {
        do_something( $str->($idx) );
    }
    
  2. or download this
    params.0.arg
    params.1.arg
    ...
    params.8.arg
    params.9.arg
    params.10.arg
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2024-03-19 11:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found