Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re: Premature End of Script Headers

by jkahn (Friar)
on Apr 30, 2003 at 03:39 UTC ( #254171=note: print w/ replies, xml ) Need Help??

in reply to Premature End of Script Headers

well, when I run it, the two $rr tokens that come back from the $query->answer call are both of type CNAME, not NS. So nothing comes out of the script except the header, since you never hit another print statement.

DB<1> c 21 DB<2> x $query->answer() 0 Net::DNS::RR::CNAME=HASH(0x8755fc8) 'class' => 'IN' 'cname' => '' 'name' => '' 'rdata' => "\cBrcÀ\cW" 'rdlength' => 5 'ttl' => 1759 'type' => 'CNAME' 1 Net::DNS::RR::CNAME=HASH(0x8755f98) 'class' => 'IN' 'cname' => '' 'name' => '' 'rdata' => "\cBrc\cEyahoo\cFakadns\cCnet\c@" 'rdlength' => 21 'ttl' => 1759 'type' => 'CNAME'

But I'm just running it from the commandline; haven't tested it in CGI environment proper.

Update: hv is right, the shebang line is funky too. I was running it with explicit call to perl from within emacs, so I didn't notice.

Comment on Re: Premature End of Script Headers
Select or Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2016-02-09 23:39 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (329 votes), past polls