asmodai has asked for the wisdom of the Perl Monks concerning the following question:
Suppose I have an array:
@blah
@blah holds some values like the array it is.
$blah[0] holds "10".
How would I go about adding a string to $blah[0] so that it concatenates to:
"10.0.0.0"?
I've tried funky constructs like:
$blah[0] += ".0.0.0";
Or changed the += to . , but to no avail, since it is not a numeric.
Must be simple, I'm sure. :)
Thanks
--Jeroen/Asmodai
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to add content to an array element?
by c-era (Curate) on Feb 22, 2001 at 18:25 UTC | |
|
Re: How to add content to an array element?
by asmodai (Novice) on Feb 22, 2001 at 18:28 UTC | |
|
Re: How to add content to an array element?
by tame1 (Pilgrim) on Feb 22, 2001 at 21:31 UTC |