in reply to system call with variable interpolation
Worked in both cases here (CentOS 5, zsh 4) ...
#!~/bin/perl5.14.1 use strict; use warnings; my $abc; $abc = `date`; #$abc = "Hello"; print "DATE : $abc\n"; system("echo $abc >> log.txt");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: system call with variable interpolation
by Anonymous Monk on Jul 15, 2011 at 12:09 UTC |