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

Re: need help with concantenation

by seattlejohn (Deacon)
on Jan 12, 2003 at 06:26 UTC ( [id://226217]=note: print w/replies, xml ) Need Help??


in reply to need help with concantenation

Without any surrounding context it's hard to determine what you're trying to accomplish here. Consider that $x .= $y is just shorthand for $x = $x . $y. So what you've written is this:
$month_3_tables . $x = $month_3_tables . $x . "html stuff"
which isn't meaningful, as you need to have a single variable name on the left side of the assignment statement.

Is your intent to modify individual elements within an array, like this?

$month_3_tables[$x] .= "html stuff"
It might help if you followed up with a bigger snippet of code and/or a more complete explanation of what you expected the behavior to be.

        $perlmonks{seattlejohn} = 'John Clyman';

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (6)
As of 2024-04-23 22:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found