Using perl variable in command line
- From: oasisbhrnw@xxxxxxxxx (Yoyoyo Yoyoyoyo)
- Date: Thu, 21 Feb 2008 07:25:36 -0800 (PST)
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.
- Follow-Ups:
- Re: Using perl variable in command line
- From: Yitzle
- Re: Using perl variable in command line
- Prev by Date: Re: Counting keys in an array of hashes?
- Next by Date: Re: Using perl variable in command line
- Previous by thread: address translation
- Next by thread: Re: Using perl variable in command line
- Index(es):