in reply to Declare my variable in sysread - Mojo::File::slurp
which is a shorthand forwhile (my $line = <$fh>) {
where, again, my $line appears as anwhile (defined( my $line = readline($fh) )) {
if (my $x = func()) { print "$x accesible here"; } elsif ($x eq 0) { # even here, print "and also here: $x"; }
Updated.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Declare my variable in sysread - Mojo::File::slurp
by ikegami (Patriarch) on Dec 22, 2018 at 00:43 UTC | |
by choroba (Cardinal) on Dec 22, 2018 at 00:46 UTC | |
by ikegami (Patriarch) on Dec 22, 2018 at 00:56 UTC | |
|
Re^2: Declare my variable in sysread - Mojo::File::slurp
by ikegami (Patriarch) on Dec 22, 2018 at 00:52 UTC |