Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
schwern opened this issue Jul 24, 2009 · 4 comments · Fixed by #194
Closed

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

schwern opened this issue Jul 24, 2009 · 4 comments · Fixed by #194

Comments

@schwern
Copy link
Contributor

schwern commented Jul 24, 2009

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
Copy link
Contributor

exodist commented May 11, 2010

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
Copy link
Contributor

doherty commented Apr 23, 2011

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

@schwern
Copy link
Contributor Author

schwern commented Apr 28, 2011

Fixed by #194

@schwern schwern closed this as completed Apr 28, 2011
@doherty
Copy link
Contributor

doherty commented Apr 28, 2011

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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants