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 ..
In reply to Re^3: Internally, how do for() and while() differ? (readline vs glob)
by LanX
in thread Internally, how do for() and while() differ?
by stevieb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |