in reply to Re: open(), go away with bad way, or fail with the right way?
in thread open(), go away with bad way, or fail with the right way?
Perl makes "my" variables available in the statement after the "my". This allows things like
my $foo = 'Bar'; my $foo = $foo x 2; say $foo; # 'BarBar'
No, I do not defend this as a coding practice -- I'm just trying to elucidate how Perl works.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: open(), go away with bad way, or fail with the right way?
by karlgoethebier (Abbot) on Jun 01, 2019 at 17:40 UTC | |
by Anonymous Monk on Jun 01, 2019 at 18:00 UTC | |
by karlgoethebier (Abbot) on Jun 01, 2019 at 18:15 UTC | |
by Anonymous Monk on Jun 01, 2019 at 20:16 UTC | |
by karlgoethebier (Abbot) on Jun 01, 2019 at 23:11 UTC | |
| |
|
Re^3: open(), go away with bad way, or fail with the right way?
by Anonymous Monk on May 31, 2019 at 21:38 UTC |