in reply to A strib that begins whit $ (more)

This isn't a perl issue.. it's a shell issue. You need to quote your string like so..

system("echo '$gpsdata'");
or you could not envoke the shell and just use print. Unless you have a really good reason to invoke a system call, print is a much better option.

Rich

update: changed the var from $_ to $gpsdata

Replies are listed 'Best First'.
Re: Re: A strib that begins whit $ (more)
by dws (Chancellor) on Apr 25, 2001 at 03:44 UTC
    Alternatively, you can prevent system() from expanding shell metacharacters by using the multi-argument form of system().   system("echo", $_); This oft-overlooked system() behavior is explained in perlfunc.