Using perl variable in command line



Hi all,

I am having trouble representing a perl variable when using back ticks to run commands from the unix command line. A simple example would be:

#!usr/bin/perl
$X = $ARGV[0];
`echo $X`;

This does not work (neither does `echo \$X`;). Is there anyway to represent a perl variable when using the backticks?

Any help is appreciated, thanks.


---------------------------------
Looking for last minute shopping deals? Find them fast with Yahoo! Search.