Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^3: Internally, how do for() and while() differ? (readline vs glob)

by LanX (Archbishop)
on Oct 28, 2015 at 00:15 UTC ( #1146203=note: print w/replies, xml ) Need Help??


in reply to Re^2: Internally, how do for() and while() differ?
in thread Internally, how do for() and while() differ?

> Unless, again, the <> operator is used.

Sorry for nitpicking, but IMHO it's not the same "operator" here.

The OP uses a readline and you are applying a glob.*

That's one of the more confusing magic features of Perl, so I'm open for further discussion on this matter.

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!

*) similarly are range and flipflop different, even when written with ..

  • Comment on Re^3: Internally, how do for() and while() differ? (readline vs glob)
  • Download Code

Replies are listed 'Best First'.
Re^4: Internally, how do for() and while() differ? (readline vs glob)
by GotToBTru (Prior) on Oct 28, 2015 at 12:10 UTC

    The way 'for' versus 'while' works seems to be a good case for learning how the magic works, at least a little bit.

    Dum Spiro Spero

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2020-02-29 04:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What numbers are you going to focus on primarily in 2020?










    Results (128 votes). Check out past polls.

    Notices?