I am using Perl 5.8 in a Unix environment.
It still does not work and I get a funny output.
My line of code is
print "<QUESTION> $ID2questions{$qID} </QUESTION>\n";
And I print out:
</QUESTION>ow far would you run if you participate in a marathon?
a. without <QUESTION>
b. missing first character of the question itself, i.e. it print "ow" instead of "How".
With this code:
[tt]
$qID='running';
$ID2questions{$qID}=
'How far would you run if you participate in a marathon?';
print "<QUESTION> $ID2questions{$qID} </QUESTION>\n";
[/tt]
I get:
[tt]
<QUESTION> How far would you run if you participate in a marathon? </QUESTION>
[/tt]
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.