in reply to Re: Re: Re: A string that begins with $ (again)
in thread A string that begins with $ (again)

Thanks, NOw i just have to figure out how to test every line and store the right one in a var.
I canīt do a:
!#/user/bin/perl -w use strict; while (<>) { $var = substr($_, 3, 2); print "$var"; }
but im closer now, thanx again

Replies are listed 'Best First'.
Re: (5): A string that begins with $ (again)
by rchiav (Deacon) on Apr 25, 2001 at 05:29 UTC
    You're going to want to use a regular expression. Look at perlre to get started.
    Rich