Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re^11: Perl list items

by AnomalousMonk (Canon)
on Jul 10, 2012 at 10:36 UTC ( #980849=note: print w/ replies, xml ) Need Help??

in reply to Re^10: Perl list items
in thread Perl list items

Because the code is different :)

True, the code is different, but the expressions are all equivalent: they're all 'degenerate' single-item slices.

Because @warnme... is different from @$derefNowarn...

I don't understand the significance of this statement. Are scalar derefs in this context (single-item slices) simply not warned about? If so, is there a rationale for this? (I could understand if this was simply beyond the scope of the warnings system as it now stands. After all, you can't warn about everything.)

For verbosity see diagnostics...

diagnostics are indeed more verbose, but don't throw more light, for me, on this (admittedly somewhat trivial) problem. Oh well, going to bed now...

Comment on Re^11: Perl list items
Select or Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2015-11-29 09:12 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (750 votes), past polls