in reply to Re^2: Stuck in Perl.. Partial code, but it needs more improvement.. Any suggestions, please?
in thread Stuck in Perl.. Partial code, but it needs more improvement.. Any suggestions, please?
Check your precedence. The code you showed does not do what you think.
$ perl -Mstrict -wE 'say -e "fooble" ? 1 : 0; open my $fh, "<", "foobl +e" || die $!' 0
$ perl -Mstrict -wE 'say -e "fooble" ? 1 : 0; open my $fh, "<", "foobl +e" or die $!' 0 No such file or directory at -e line 1.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Stuck in Perl.. Partial code, but it needs more improvement.. Any suggestions, please?
by perlfan (Parson) on Jun 04, 2021 at 00:43 UTC | |
by LanX (Saint) on Jun 04, 2021 at 12:30 UTC | |
by hippo (Archbishop) on Jun 04, 2021 at 12:44 UTC |