Mat Harris wrote: > > i know that chop returns the char chopped but how do i get that into a var? > i want to be able to chop all numbers after decimal point from a numeric > string. i thought something like this would work: > > while ($chopped_char ne "."){ > chop $netout_new; > $chopped_char = "how do i get this???" > }
$netout_new =~ s/(?<=\.)\d+$//; John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]