Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: need help with concantenation

by seattlejohn (Deacon)
on Jan 12, 2003 at 06:26 UTC ( #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? | Other CB clients
Other Users?
Others examining the Monastery: (5)
As of 2023-02-01 12:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?