in reply to Re: Is space supposed to be ignored between a sigil and its variable name?
in thread Is space supposed to be ignored between a sigil and its variable name?

Sure it's confusing. Without running the code, tell me what $i and $j are.

my $x = ['a', 'b', 'c', 'd', 'e']; my $i = $ x -> [ 4 ]; my $j = "$ x -> [ 4 ]"; print "$i\n"; print "$j\n";
  • Comment on Re^2: Is space supposed to be ignored between a sigil and its variable name?
  • Download Code

Replies are listed 'Best First'.
Re^3: Is space supposed to be ignored between a sigil and its variable name?
by Anonymous Monk on Apr 18, 2009 at 17:08 UTC
    No :) some things aren't defined well, stick to what is defined :)
    my $x = ['a', 'b', 'c', 'd', 'e']; my $i = $ x -> [ 4 ]; my $j = "$ x -> [ 4 ]"; my $k = "$x->[4]"; warn $i; warn $j; warn $k; __END__ e at - line 6. ARRAY(0x225f04) -> [ 4 ] at - line 7. e at - line 8.