Home: Perl Programming Help: Beginner:
mystery prints


Mar 15, 2001, 1:19 PM

Views: 367
mystery prints

I have several print statements like:

print INP &num_form($a[3], 10), &num_form($a[4], 10);

They do not seem to do anything unless I precede them with:

$c = tell INP;
seek INP, $c, 0;

Other print statements work fine. $c is not used elseware. Does anyone know why this is necessary?

I'm using Perl 5.006 on Win95.