Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^3: ~~ and list literal

by 2teez (Priest)
on Oct 26, 2012 at 00:03 UTC ( #1000972=note: print w/replies, xml ) Need Help??


in reply to Re^2: ~~ and list literal
in thread ~~ and list literal

TIL that parentheses don't imply a list context

Ofcourse, I never said parentheses imply a list context, it's the comma operator that does.
But, what I did say/wrote is that the smartmatch ..infers contexts from the actual types of its operands and uses that type information to select a suitable comparison mechanism...

Any other which I missed?
Please, check perlop for detailed information

If you tell me, I'll forget.
If you show me, I'll remember.
if you involve me, I'll understand.
--- Author unknown to me

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1000972]
help
Chatterbox?
[Corion]: Heh. Perl heredocs are nasty - Filter::Simple doesn't know whether the line continued after the heredoc or not. The heredoc payload starts on the next line.
[Corion]: So currently, Filter::Simple mangles your code/line numbers if you use heredocs ;)
[Corion]: Of course, from a certain angle, it doesn't matter if your code line continues after <<FOO, but it would be nice if Filter::Simple / Text::Balanced didn't mangle that...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (9)
As of 2017-01-22 10:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (187 votes). Check out past polls.