So The boss asked me to "make a fast forms based log book "
And I set about the task using CGI.pm,
and I've hit a , well starnge error,
I open and refill the form with
open SAVE,"</tmp/report.sav";
my $page=new CGI \*SAVE ;
close(SAVE);
do what I have to ,
and write a save out at the end using
open SAVE,">/tmp/report.sav";
$page->save(\*SAVE);
close(SAVE);
This will not work, and I dont know why.
However
each part will work,
If I comment out the save step at the end, the read works,
like wise if i use
my $page= new CGI ;
the save function works,
Plus , I dont get ANY errors.
How should I do this to make it work??
Thanks
Bill
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.