Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^6: CGI::Ajax No head/html tags, nowhere to insert. Returning javascript anyway. (mini-if ternary)

by Anonymous Monk
on Sep 01, 2013 at 19:17 UTC ( [id://1051849]=note: print w/replies, xml ) Need Help??


in reply to Re^5: CGI::Ajax No head/html tags, nowhere to insert. Returning javascript anyway. (mini-if ternary)
in thread CGI::Ajax No head/html tags, nowhere to insert. Returning javascript anyway.

do { if( ... ) { ...; $return->last_statement; } }

extra parenthesis -MO=Deparse,-p style

( ( if_condition_true() ) ? ( then_return_this() ) : ( else_return_this() ) )

:D

  • Comment on Re^6: CGI::Ajax No head/html tags, nowhere to insert. Returning javascript anyway. (mini-if ternary)
  • Select or Download Code

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2024-04-25 16:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found