in reply to Re: list references
in thread list references

I'm beginning to think this is some sort of bug. Here's what I get for your example...
greg@sparky:~/test$ perl -e '$ref=\(1..3); print $$ref' Not a SCALAR reference at -e line 1. greg@sparky:~/test$ perl -e '$ref=\(1..3); print "@$ref\n"' 1 2 3


-- All code is 100% tested and functional unless otherwise noted.

Replies are listed 'Best First'.
Re^3: list references
by NetWallah (Canon) on Jun 16, 2004 at 16:01 UTC
    Yes - that DOES look strange.
    Here is what I get on my " perl, v5.8.3 built for MSWin32-x86-multi-thread"
    C:\> perl -e "$ref=\(1..3); print $$ref" 3 C:\>perl -e "$ref=\(1..3); print qq(@$ref\n)" Not an ARRAY reference at -e line 1. C:\>perl -e "$ref=[1..3]; print qq(@$ref\n)" 1 2 3

    Offense, like beauty, is in the eye of the beholder, and a fantasy.
    By guaranteeing freedom of expression, the First Amendment also guarantees offense.