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

They aren't being stripped off. use this.. to test
#!/usr/bin/perl -w #no need here, but you should put this in all your scripts. use strict; while (<>) { print "$_\n"; }
Now run that and you'll see that all the data is intact.

Rich

Replies are listed 'Best First'.
Re: Re: Re: Re: A string that begins with $ (again)
by johan_paz (Initiate) on Apr 25, 2001 at 05:22 UTC
    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
      You're going to want to use a regular expression. Look at perlre to get started.
      Rich