Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Re: indirect object in camel book

by astaines (Curate)
on Oct 06, 2001 at 00:23 UTC ( #117098=note: print w/replies, xml ) Need Help??


in reply to Re: indirect object in camel book
in thread indirect object in camel book

Worse yet, it looks as if almost anything might conceivably be a file handle, like all of the following -->

#!d:/perl/bin/perl -w use strict; use CGI; my $query=new CGI; sub new(*) { print "Ouch!!\n"} my $query2=new CGI; my $query3 = new STDIN; my $query4 = new $query; my $query5 = new query; my $query6 = new 1; my $query7 = new ""; my $query8 = new '';

This also works -- (prints Ouch)

my $query9 = new @;

although the next line is not interpreted correctly.

-- Anthony Staines

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://117098]
help
Chatterbox?
[shmem]: "debugging a program is more difficult than to write it in the first place. If you code your program as smart as you are, you are, by definition, too dumb to debug it."
[stevieb]: I literally laughed. That's good :) Perhaps I just need to go climb another mountain and forget about it
shmem seeks a tate and smikes a pope

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2017-03-28 22:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (342 votes). Check out past polls.