weston2012
Programmer
while (my @usr = $stu->fetchrow_array)
{
foreach ( @usr ) {print STROUT $_ . "\t"}
}
I am getting a weird error msg complaining about the print statement having 'unintialized value $_ in concatenation <.> or string'
$stu->fetchrow_array returns query results, and the code tries to print the items in each row with tabs seperating them.
I am quite new to Perl, and I inherit the code from someone before me, but it really baffles me how this line would give me an error.
{
foreach ( @usr ) {print STROUT $_ . "\t"}
}
I am getting a weird error msg complaining about the print statement having 'unintialized value $_ in concatenation <.> or string'
$stu->fetchrow_array returns query results, and the code tries to print the items in each row with tabs seperating them.
I am quite new to Perl, and I inherit the code from someone before me, but it really baffles me how this line would give me an error.