-
-
Save anonymous/d874b159bbeb0090a9fc19658a8ac4a9 to your computer and use it in GitHub Desktop.
Can't modify constant item in scalar assignment, near $dt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use DateTime; | |
my $dt = DateTime->now; | |
# later, in my route: | |
$self->stash(datetime = $dt); | |
# results in the error message above |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment