Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re^8: typeglob/symbolic reference question

by 7stud (Deacon)
on Nov 08, 2010 at 20:56 UTC ( #870191=note: print w/replies, xml ) Need Help??

in reply to Re^7: typeglob/symbolic reference question
in thread typeglob/symbolic reference question

Why do you need to put so many complications around it?

Sorry. I just wanted to find an explanation for the syntax. I understand what the net result is--but if I don't understand how perl interprets the syntax then I won't be able to figure out what is happening in other contexts.

I guess for now I'll just have to go with *color and *{"color"} are equivalent--even though *{"color"} is not legal under strict refs.


  • Comment on Re^8: typeglob/symbolic reference question

Replies are listed 'Best First'.
Re^9: typeglob/symbolic reference question
by andal (Hermit) on Nov 09, 2010 at 09:37 UTC

    I guess, I can't understand what is the meaning of "explanation for the syntax". I know that there's syntax for doing different things. I don't understand why the syntax has to be explained. I mean, it is not common to search for the explanation of syntax of English language. The syntax (together with words) makes English different from say Russian :)

    I guess for now I'll just have to go with *color and *{"color"} are equivalent--even though *{"color"} is not legal under strict refs.

    "strict refs" just tries to limit you to the rigid forms of "normal" usage. This is done in hope to catch some obscure errors. It does not change the fact, that *color and *{"color"} do the same thing. Though with the second syntax you can do more obscure things than with the first (that is why "strict" does not approve it :) ) Well, as long as your understanding does not limit you in what you can do with perl, there shouldn't be any problems.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://870191]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2022-09-28 13:35 GMT
Find Nodes?
    Voting Booth?
    I prefer my indexes to start at:

    Results (124 votes). Check out past polls.