Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Is glob feature really useful?

by shmem (Chancellor)
on Jan 09, 2021 at 19:32 UTC ( [id://11126669]=note: print w/replies, xml ) Need Help??


in reply to Is typeglob feature really useful?

we all know, Perl support same name but different type, that means $foo and @foo could be both exist without any violation.

It is singular, plural and named items. Remeber, perl was invented by a linguist. Identifiers are stems from which substantives (singular and plural) and verbs can be derived, etc.

Same as in English e.g. "cow" and "cows" where $cow is one cow and @cow is a herd, %cow are the pet cows callable by name. Well, $cow could contain a cat, @cow could contain a gang of bulls and %cow the members of the cowboy family, but that's meant as freedom for the programmer to introduce bugs.

perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'

Replies are listed 'Best First'.
Re^2: Is glob feature really useful?
by xiaoyafeng (Deacon) on Jan 10, 2021 at 09:29 UTC
    Yeah, I know it's feature, but I mean it is really worth? or maybe the current implementation for this is not good enough. see my above reply.




    I am trying to improve my English skills, if you see a mistake please feel free to reply or /msg me a correction

      It is simply one of those things that is so intrinsic to the language that one can never contemplate getting rid of it.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (2)
As of 2024-04-26 00:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found