S
stu7
+ (I posted this the other day, but it seems to have
dissappeared).
Using my older version of Perl (5.08 ?), the JOIN
command produces what appears to be more like a HASH
than the ordered list I fed it... for instance;
@fruitz = join "apple","bananna","cherry" ;
...does in fact produce a joined string, but the elements
are NEVER in the original order,
- more often, this would come out: apple cherry bananna
when printed ...suggesting to me that, at least this older
version of Perl, that JOIN used a HASH to save the results.
That seems a little odd_ but really, my question is,
IS this what the JOIN command always does, or is it fixed
or changed in later versions of Perl, 5.6 or later ?
dissappeared).
Using my older version of Perl (5.08 ?), the JOIN
command produces what appears to be more like a HASH
than the ordered list I fed it... for instance;
@fruitz = join "apple","bananna","cherry" ;
...does in fact produce a joined string, but the elements
are NEVER in the original order,
- more often, this would come out: apple cherry bananna
when printed ...suggesting to me that, at least this older
version of Perl, that JOIN used a HASH to save the results.
That seems a little odd_ but really, my question is,
IS this what the JOIN command always does, or is it fixed
or changed in later versions of Perl, 5.6 or later ?