Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: concatenating variables

by brx (Pilgrim)
on Jul 31, 2012 at 17:37 UTC ( #984633=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my %names;
    $names{$linename.$counter} = "use pricedb;" ;
    
  2. or download this
    #my $line1 = "use pricedb;";
    
    ...
    for my $counter (1 .. 10) {
        my $rowsaffected = $dbh ->do($lines[$counter]);
    #...
    
  3. or download this
    
    for my $line (@lines) {
        my $rowsaffected = $dbh ->do($line);
    #...
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (10)
As of 2014-10-01 15:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (29 votes), past polls