Came across some code I just had to share. How many steps is this programmer from good, idiomatic perl?
sub padfield { my ( $value, $fieldlength ) = @_; while ( length $value < $fieldlength ) { my $pad = '0'; $value = join( '', $pad, $value ); } return $value; }
--
TTTATCGGTCGTTATATAGATGTTTGCA
In reply to Re: The joys of bad code
by TomDLux
in thread The joys of bad code
by BUU
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |