in reply to Variable expansion
my $hr = {foo => { bar => '/dev/null' } }; # will not work my $cmd = 'ls $hr->{foo}->{bar}'; print `$cmd`; # works a treat my $cmd = "ls $hr->{foo}->{bar}"; print `$cmd`; __output__ ls: -: No such file or directory /dev/null
broquaint
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Variable expansion
by stephenpry (Initiate) on Apr 17, 2002 at 13:59 UTC | |
by broquaint (Abbot) on Apr 17, 2002 at 14:14 UTC | |
by stephenpry (Initiate) on Apr 17, 2002 at 14:34 UTC |