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

Replies are listed 'Best First'.
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" ?