Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Turn off strict vars when writing a one-liner #63

Closed
schwern opened this Issue · 4 comments

3 participants

@schwern
Owner

Writing one liners with perl5i is a little annoying because it wants me to predeclare all my variables. Strict is on. I think that's a little silly. If $0 is -e turn strict vars off. Leave the rest on.

@exodist

The Devel-Delcare workaround in my master turns -e into a real program. We could add 'no strict' to the top of the generated script file solving this problem.

@doherty

I think you probably want strict vars disabled for perl -Mperl5i::2 -e '$fun="yay"; say $fun;' too

@doherty doherty referenced this issue from a commit in doherty/perl5i
@doherty doherty No strict vars for one-liners
This disables strict vars for one-liners using the perl5i
executable, or when perl5i is loaded manually:
    perl -Mperl5i::latest -e '$fun="yay"; say $fun;'

Fixes #63
2227e69
@schwern
Owner

Fixed by #194

@schwern schwern closed this
@doherty

I just couldn't read that list. But that used to be two commits, I'm not sure what I did to squash them :\

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.