Ich möchte folgendes tun ein Commando mit Argument ausführen ,allerdings soll das argument ein string sein!
Der Code sollte so aussehen,leider lässt er sich nicht compilieren.#!/usr/bin/perl -w
use strict;
system("ls", "-al");
funzt
aber
#!/usr/bin/perl -w
use strict;
my $arg = "-al";
system("ls", "$arg");
oder
system("ls", '$arg');
oder
system("ls", `$arg`);
oder
system("ls", "`$arg`");
geht nicht!
gibts da eine Möglichkeit?
Datum: 24.09.2009-17:03
