Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Re(2): while(<>) { ... } considered harmful

by IlyaM (Parson)
on Sep 08, 2002 at 19:28 UTC ( #196082=note: print w/ replies, xml ) Need Help??


in reply to Re(2): while(<>) { ... } considered harmful
in thread while(<>) { ... } considered harmful

I believe that's a minimal demonstration of a bug, rather than "real" code.

You are right. Real code looks like:

my @other_connectors = map $ad_obj->connector(field => $_), qw(header description region country state);
No require on the surface. It was deeply hidden in one of method calls. I though it was just a Perl bug when I got that error for first time.

--
Ilya Martynov (http://martynov.org/)


Comment on Re: Re(2): while(<>) { ... } considered harmful
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2014-12-26 23:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (176 votes), past polls