Re: Using perl variable in command line



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.

Relevant Pages

  • Siemens MT50 and AT Commands
    ... I have a cable to serial connection too. ... Commands and I had a few problems. ... When I try send sms in PDU mode, mobile return error too. ...
    (uk.telecom.mobile)
  • Re: SMS sender
    ... I like to have my small hobby system sending status SMS to my mobile. ... Is there any standard phone with good documentation on the AT commands ... Using an "older Nokia" is a good idea if it's connectable as a GSM ...
    (comp.arch.embedded)
  • Re: SMS to multi user
    ... how are u sending sms on mobile please tell me because i am working on same project ... With AT commands. ... What hardware do you have? ...
    (comp.lang.labview)
  • [opensuse] Doug Parsons is out of the office.
    ... If it is urgent please ... contact me on my Mobile: ... To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx ... For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx ...
    (SuSE)