Hi Monks,
This line of code isn't working for me:
print "$_ could not be restored!\n" unless (exists $found{$_}) foreach (@files);
This is the error:
syntax error at /home/fisusr/bin/monitor_ssh.pl line 108, near ") foreach "
Is this not valid code? Thanks in advance.
In reply to foreach loop on one line by halecommarachel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |