Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re: Perl oddities

by dragonchild (Archbishop)
on Mar 01, 2005 at 17:27 UTC ( #435534=note: print w/replies, xml ) Need Help??

in reply to Perl oddities

It's also kind of odd when your filehandle is not a simple scalar or bareword:

That's something that also bugs me - why is a filehandle a bareword, but every other bareword gets smacked down by strict?

Being right, does not endow the right to be rude; politeness costs nothing.
Being unknowing, is not the same as being stupid.
Expressing a contrary opinion, whether to the individual or the group, is more often a sign of deeper thought than of cantankerous belligerence.
Do not mistake your goals as the only goals; your opinion as the only opinion; your confidence as correctness. Saying you know better is not the same as explaining you know better.

Replies are listed 'Best First'.
Re^2: Perl oddities
by brian_d_foy (Abbot) on Mar 01, 2005 at 17:31 UTC

    Don't forget that labels escape strictures too. If Perl can tell what it is, strict doesn't care. With filehandles it knows by position. With labels, it's the colon. You can forward define subs too, and get away with it.

    brian d foy <>
      Perl 6 has no barewords at all. If Perl 6 can't tell what it is from context, it's an error. Classes must be predeclared or use the :: prefix, for instance. They aren't just bareword strings anymore.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (7)
As of 2019-11-14 11:43 GMT
Find Nodes?
    Voting Booth?
    Strict and warnings: which comes first?

    Results (77 votes). Check out past polls.