in reply to Re^4: Save form data with decoded URL chars
in thread Save form data with decoded URL chars

perl -MCGI -e " $q= CGI->new({ ro => qq{=sh\nam=bo\n}, }); print qq{\ +n\n\n# first save()d and new()able\n}; $q->save( \*STDOUT ); print qq +{# and now not save()d and not new()able\n}; for my $key( $q->param ) +{ for my $val( $q->param($key) ){ print qq{$key=$val\n}; } } " # first save()d and new()able ro=%3Dsh%0Aam%3Dbo%0A = # and now not save()d and not new()able ro==sh am=bo

Replies are listed 'Best First'.
Re^6: Save form data with decoded URL chars
by SerZKO (Beadle) on Aug 08, 2012 at 14:31 UTC
    Man, sorry but I just don't get it... :-(

    I took a look at examples as well, and there is an example script there using save method as well...

      Man, sorry but I just don't get it... :-(

      What exactly?

        For example, why do you have 2 equal signs on your output ? Isn't it just easier to write $qry->save ? And then that part that I would have to create a new cgi...