in reply to Re: Character Counts
in thread Character Counts
(whew -- it's all a bit of a mess) Better hit a book or two a little harder... To get you started, here's a cleaned up version:
And, please look at the "Site How To" and learn about the use of <code> tags when posting actual code -- it really helps.$newphone = $phone; $newphone =~ s/\D+//g; # NOT " = =~ " !! $phonelength = length( $newphone ); $emph = ( $phonelength == 4 or $phonelength == 10 ) ? "" : "****"; printf( PHONELIST "%16d %100s\n", $phone, $abs_filename); printf( SUMMARY "%3d %16d %12d %4s %100s\n", ++$ctr, $phone, $newphone, $emph, $abs_filename );
|
|---|