Hi I am struggling learning perl and everytime I try to enter stuff in at runtime I keep getting a 1 returned. I dont get it. please can you explain to me what I am doing wrong.
#!/usr/bin/perl
print "content-type: text/html \n\n";
&fname;
print "\n totals are out of 140 \n";
sub fname
{
return "enter in up to 10 firstnames: \n";
for ($i=0; $i < 2; $i++)
{
@name=<STDIN>."\n";
}
return "these are the firstnames:".@name;
}