Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: .cgi interaction problems

by Anonymous Monk
on Oct 01, 2012 at 12:53 UTC ( #996647=note: print w/ replies, xml ) Need Help??


in reply to .cgi interaction problems

some happy thoughts, laugh :)

Well, we only have your word that it isn't happening, it looks like it should happen ...

but you never check to see if you can write to template file ...

writing to tempate file in temp directory is weird and unneeded, perldoc HTML::Template | grep new

new_scalar_ref or scalarref => \$template

\"\"\"\" is PAINFUL, use qq{""""}

fetchrow_hashref docs warn you about storing the reference but you store it anyway -- your data is all duplicates -- might as well fetchall instead Tutorials->Database Programming->DBI recipes

I've been up all night :D


Comment on Re: .cgi interaction problems
Download Code
Re^2: .cgi interaction problems
by kazak (Beadle) on Oct 01, 2012 at 13:48 UTC
    I'm glad that my "code" made you laugh. To post a code written by a newbie and expect that none will laugh is too naive even for a child, so it's ok, anyway thanks for advices.

    About: writing to /tmp...

    I made it for debugging purposes. Sure it may be unneeded but at this point I'm using things I'm familiar with.

    About:\"\"\"\" is PAINFUL, use qq{""""}

    Thx, I'll use it.

    About: fetchrow_hashref docs warn you about storing the reference but you store it anyway -- your data is all duplicates -- might as well fetchall instead Tutorials->Database Programming->DBI recipes

    Thanks for a clue, I will read about it

      I'm glad that my "code" made you laugh. To post a code written by a newbie and expect that none will laugh is too naive even for a child, so it's ok, anyway thanks for advices.

      Let me rephrase, "here are some happy thoughs for you kazak, you should laugh :)"

      The universe is full of vibes, catch a good one :)

        :) For me, it'll be easier to relax if I'll catch a solution for my problem somehow, before vibes. Right now what confuses me most is: Why click on "Edit" calls the same main.cgi and not "edit.cgi" ?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (8)
As of 2014-10-25 00:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (138 votes), past polls