On Aug 20, 11:51 am, [EMAIL PROTECTED] (Gunnar Hjalmarsson) wrote: > Paul Lalli wrote: > > $array[0] = substr( $_, 256, 6 ); > > { > > no warnings 'numeric'; > > That would better be: > > no warnings qw/numeric uninitialized/; > > to cover undefined array elements. > > > printf "%06d", $array[0]; > > }
if $array[0] is undefined, it is undefined when it was assigned to by substr(), in which case substr() will also issue a warning that the OP will theoretically want to handle. Paul Lalil -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/