Not for me:
#!/usr/bin/perl use strict; use warnings; open(my $CMD, "dira |") || die "something else\n"; while( <$CMD> ) { print "$_"; } close($CMD);
Output:
Can't exec "dira": No such file or directory at ./test.pl line 6. something else
In reply to Re^3: Opening not-existing command - Error Handling
by AR
in thread Opening not-existing command - Error Handling
by Dirk80
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |