in reply to Re^5: Readonly oddity
in thread Readonly oddity
Oh, yeah, also I don't like that you have to add () to those constants in some cases.use 5.014; use strict; use warnings; use constant FOO => [ qw(BAR BAZ) ]; push @{FOO()}, qw(BOO HAHA); say join " ", @{FOO()}; @{FOO()} = split / /, "what are you using such constants for?"; say join " ", @{FOO()};
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: Readonly oddity
by BrowserUk (Patriarch) on Feb 01, 2016 at 22:11 UTC | |
|
Re^7: Readonly oddity
by dmitri (Priest) on Feb 01, 2016 at 20:14 UTC |