Re: Using perl variable in command line
- From: oasisbhrnw@xxxxxxxxx (Yoyoyo Yoyoyoyo)
- Date: Thu, 21 Feb 2008 07:35:41 -0800 (PST)
But the commands do still run in the command line, is there anyway to throw a perl variable in there?
yitzle <yitzle@xxxxxxxxxxxxxxxxxxxxx> wrote: Perl captures the output from backticks so nothing gets printed to the screen.
__CODE__
my $x = "efg";
my $y = `echo $x`;
print $y;
__OUTPUT__
efg
__END__
--
To unsubscribe, e-mail: beginners-unsubscribe@xxxxxxxx
For additional commands, e-mail: beginners-help@xxxxxxxx
http://learn.perl.org/
---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.
- Follow-Ups:
- Re: Using perl variable in command line
- From: Yitzle
- Re: Using perl variable in command line
- References:
- Re: Using perl variable in command line
- From: Yitzle
- Re: Using perl variable in command line
- Prev by Date: Re: Using perl variable in command line
- Next by Date: Re: Using perl variable in command line
- Previous by thread: Re: Using perl variable in command line
- Next by thread: Re: Using perl variable in command line
- Index(es):
Relevant Pages
|