Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
But Perl gives an error saying "Scalar found where operator expected".foreach my $k ( @a) { my $name = $k.\*; $x = `find . -name "$name" -print`; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: passing a variable value to Unix command
by runrig (Abbot) on Oct 19, 2010 at 22:09 UTC | |
Re: passing a variable value to Unix command
by ikegami (Patriarch) on Oct 20, 2010 at 00:15 UTC | |
Re: passing a variable value to Unix command
by graff (Chancellor) on Oct 20, 2010 at 02:23 UTC | |
Re: passing a variable value to Unix command
by JavaFan (Canon) on Oct 20, 2010 at 01:50 UTC | |
Re: passing a variable value to Unix command
by pobocks (Chaplain) on Oct 19, 2010 at 23:38 UTC | |
Re: passing a variable value to Unix command
by mjscott2702 (Pilgrim) on Oct 20, 2010 at 08:18 UTC | |
Re: passing a variable value to Unix command
by DrHyde (Prior) on Oct 20, 2010 at 10:06 UTC |