Read system command and execute : system « System Functions « Perl
- Perl
- System Functions
- system
Read system command and execute
#!/usr/local/bin/perl -T
$ENV{'PATH'} = '/bin:/usr/bin:/usr/local/bin';
while (<>) {
$command = $_;
system($command);
}
Related examples in the same category