Why does Perl have sigils?
What are they good for, exactly?
|
to tell what sort of variable is being used or (in the case of indexing an array or hash) what sort of values are returned.
|
why do other languages not?
;) it makes it clear what is a variable and it's context, list, scalar hash. perl is all about context, once you grasp that you've pretty much got it. it's weird compared to most languages. |
Quote:
|
And if you think sigils are nifty, wait until you start using twigils.
|
All times are GMT -5. The time now is 04:15 AM. |