in reply to recursive join
Is there a way to initialize the variable with a value before I join itYes, just declare it with something like my $LINE = "" before you start doing your joins.
You are also using join to do concatenation of two strings. Much better to use the "." operator which expresses exactly what you are doing:
$LINE = $LINE . $_;
or even more succinctly
$LINE .= $_;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: recursive join
by Anonymous Monk on Dec 22, 2002 at 18:37 UTC |