Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^4: CGI::Ajax No head/html tags, nowhere to insert. Returning javascript anyway.

by msinfo (Sexton)
on Sep 01, 2013 at 18:38 UTC ( #1051842=note: print w/ replies, xml ) Need Help??


in reply to Re^3: CGI::Ajax No head/html tags, nowhere to insert. Returning javascript anyway.
in thread CGI::Ajax No head/html tags, nowhere to insert. Returning javascript anyway.

;-) If it's not humor, then, I didn't understand

So can other Perl statements be inserted into above code?

  • Comment on Re^4: CGI::Ajax No head/html tags, nowhere to insert. Returning javascript anyway.

Replies are listed 'Best First'.
Re^5: CGI::Ajax No head/html tags, nowhere to insert. Returning javascript anyway. (mini-if ternary)
by Anonymous Monk on Sep 01, 2013 at 19:13 UTC
      do { if( ... ) { ...; $return->last_statement; } }

      extra parenthesis -MO=Deparse,-p style

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

      :D

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2016-06-26 11:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (328 votes). Check out past polls.