>>>>> "ta" == timothy adigun <2teezp...@gmail.com> writes:
ta> You can use unpack: ta> $val = "11.0.56.10000"; ta> $new_val=unpack("x5 A2",$val); # skip forward 6, get 2 ta> print $new_val # print 56; unpack would be a poor choice if the number of digits in a field changes. pack/unpack are meant for use in fixed field records. uri -- Uri Guttman -- uri AT perlhunter DOT com --- http://www.perlhunter.com -- ------------ Perl Developer Recruiting and Placement Services ------------- ----- Perl Code Review, Architecture, Development, Training, Support ------- -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/