Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

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

by damian1301 (Curate)
on Jul 17, 2001 at 00:26 UTC ( #97166=note: print w/replies, xml ) Need Help??

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

Actually the P in this case just creates a <p> tag and then the comma continues the print statement. So the comma has no relation to the function, P, at all.

Some minor corrections as credited to crazyinsomniac.

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

Replies are listed 'Best First'.
Re: Re: Re: one of these codes is not like the other
by runrig (Abbot) on Jul 17, 2001 at 01:58 UTC
    Actually we don't know WHAT the p is (of course, we're assuming he's using, 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 :-)
      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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://97166]
[Corion]: ambrus: AnyEvent(::HTTP) doesn't integrate well with Prima, that's my main problem
[Corion]: There is a weirdo shim because there is a POE integration for Prima, and if you use that, you can use the POE adapter of AnyEvent. What I'd want is something transport agnostic that parses HTTP or produces HTTP output, so that the communication with ...
[Corion]: ... the socket is done by my code. Ideally that module would not be based on callbacks ;)

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (11)
As of 2016-12-07 15:45 GMT
Find Nodes?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:

    Results (130 votes). Check out past polls.