in reply to What difference do the brackets make?
| [ ] | Brackets |
| { } | Braces |
| ( ) | Parenthesis |
See in perl, [ 1, 2 ] is an array reference, and { 1, 2} is a hash reference, and ( ) are neither.
BTW - i'm sure you're aware by now that `perldoc perlop' discusses operators & precedence.
Vocabulary is important, even though everybody can see that you have no brackets in your question, but what will happen when you're talking to somebody on the phone, and you say brackets, and they say What?!??? ;)
|
MJD says you can't just make shit up and expect the computer to know what you mean, retardo! ** The Third rule of perl club is a statement of fact: pod is sexy. |
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (vocabulary is important) Re: What difference do the brackets make?
by BrowserUk (Patriarch) on Dec 11, 2002 at 20:07 UTC | |
by Abigail-II (Bishop) on Dec 12, 2002 at 12:34 UTC | |
by BrowserUk (Patriarch) on Dec 12, 2002 at 14:24 UTC | |
|
Re: (vocabulary is important) Re: What difference do the brackets make?
by sauoq (Abbot) on Dec 11, 2002 at 19:02 UTC |