You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This works when used in a regular Perl script, but not at the REPL. I know it might not be the best practice, but it can come in handy when testing things out.
There is are work arounds:
my$factor = 2;
*mult_by_factor = sub {
$factor * shift;
};
say mult_by_factor(21);
Say I have the following code:
This works when used in a regular Perl script, but not at the REPL. I know it might not be the best practice, but it can come in handy when testing things out.
There is are work arounds:
or
This might be worth documenting at least.
The text was updated successfully, but these errors were encountered: