hi there, I want to understand what this code snippet is doing exactly. I have an idea, but I might be missing something.
open F, "cat file | /usr/bin/mycommand"; my $def_slash = $/; $/ = ""; eval <F>; $/ = $def_slash; close F;
Sorry that I can't post the command itself, maybe that's important in this case:(. My goal to catch any error returned from this command, but $@ does not catch anything after the eval :( Could you please advise? Thanks much
In reply to Undestanding this code snippet by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |