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

Re: Re: Re: one of these codes is not like the other

by runrig (Abbot)
on Jul 17, 2001 at 01:58 UTC ( #97195=note: print w/replies, xml ) Need Help??


in reply to Re: Re: one of these codes is not like the other
in thread one of these codes is not like the other

Actually we don't know WHAT the p is (of course, we're assuming he's using CGI.pm, but who knows :-) . It might be a function, it might be a filehandle, it might be undefined. And perl behaves differently depending on what it is. Comment out the glob assignment, then the sub, then both, then neither in the following (and uncomment them both and switch 'em around):
#!/usr/local/bin/perl #sub p { # return "bob\n"; #} *p=\*STDOUT; print p ("hello\n");
Update: Oops, sorry damian, I wasn't keeping track of who was replying to who :-)

Replies are listed 'Best First'.
Re: Re: Re: Re: one of these codes is not like the other
by damian1301 (Curate) on Jul 17, 2001 at 02:06 UTC
    I replied to nysus thus inferring a correction on nysus' code. Sorry for the misunderstanding.

    $_.=($=+(6<<1));print(chr(my$a=$_));$^H=$_+$_;$_=$^H; print chr($_-39); # Easy but its ok.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://97195]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2018-01-19 11:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How did you see in the new year?










    Results (217 votes). Check out past polls.

    Notices?