[Israel.pm] scalars and arrays
Eitan.schuler at exlibris.co.il
Sun Feb 15 04:32:41 PST 2004
@ always refers to a list
$ always refers to a scalar.
@array is a list, but a specific value of the list is a scalar.
The type of the first sign is determined by the type of the whole
That's why $array is correct and @array is not correct.
I think the strange thing is that your first example compiles.
From: Yossi.Itzkovich at ecitele.com [mailto:Yossi.Itzkovich at ecitele.com]
Sent: Sunday, February 15, 2004 2:04 PM
To: Perl in Israel
Subject: [Israel.pm] scalars and arrays
I know that:
should be written as:
But what is really happens when I write it as in the first example ? Why
@array isn't modified ?
Perl mailing list
Perl at perl.org.il
More information about the Perl