J
Jon Landenburer
I inherited a small perl program. It has this syntax whjich I donnot
iunderstand.
while (<FDF>)
{
$value = $_;
if ($_[0])
{ print TEMP $value;
next;
}
$service_order = substr( $value, 21, 18);
if ( $_[1] ) { $last_so = $service_order;} ## record 1 force
feed
. . .
. . .
Its the $_[0] I dont understand. If this were a subroutine I would
understand that tto be the first passed parameter. But this is not a
subroutine . I see the comment indicating that $_[1] but that line
never gets hit
iunderstand.
while (<FDF>)
{
$value = $_;
if ($_[0])
{ print TEMP $value;
next;
}
$service_order = substr( $value, 21, 18);
if ( $_[1] ) { $last_so = $service_order;} ## record 1 force
feed
. . .
. . .
Its the $_[0] I dont understand. If this were a subroutine I would
understand that tto be the first passed parameter. But this is not a
subroutine . I see the comment indicating that $_[1] but that line
never gets hit