jck has asked for the wisdom of the Perl Monks concerning the following question:
and the source code for the resulting page looks like this:1 while (my $dbpass = $sth->fetchrow_arrayref) 2 { 3 ($UIDholder, $LNholder) = @{$dbpass}; 4 } 5 print p($UIDholder); #checking value of UIDholder 6 if (length $LNholder == 0) { 7 print p($UIDholder); #checking value of UIDholder 8 print p("Please continue on to the next page to complete the r +egistration process."); 9 print '<form action="ti_newprofile.pl">'; 10 print '<input type="hidden" name="UIDholder" value="$UIDholder" +>'; 11 print '<input type="submit" value="Continue"></form>';
<form action="ti_newprofile.pl">
<input type="hidden" name="UIDholder" value="$UIDholder">'
<input type="submit" value="Continue">'
</form>
when i print $UIDholder at lines 5 and 7, it holds the correct value.....why is the reference printing at line 10? i've tried both value=$UIDholder and value="UIDholder", and neither works.
again, my apologies for the simplistic nature of this question - i'm probably just too tired!!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: scalar ref losing it's value?
by mildside (Friar) on May 05, 2006 at 06:11 UTC | |
by Crackers2 (Parson) on May 05, 2006 at 11:30 UTC | |
by davidrw (Prior) on May 05, 2006 at 13:56 UTC | |
|
Re: scalar ref losing it's value?
by bart (Canon) on May 05, 2006 at 07:04 UTC | |
by ikegami (Patriarch) on May 05, 2006 at 07:28 UTC | |
by bart (Canon) on May 05, 2006 at 07:36 UTC | |
by ikegami (Patriarch) on May 05, 2006 at 14:25 UTC | |
by jck (Scribe) on May 05, 2006 at 14:12 UTC | |
|
Re: scalar ref losing it's value?
by japhy (Canon) on May 05, 2006 at 14:00 UTC | |
by jck (Scribe) on May 05, 2006 at 14:19 UTC | |
by apprentice (Scribe) on May 05, 2006 at 14:49 UTC | |
by jck (Scribe) on May 05, 2006 at 18:51 UTC |