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

Accept integer import value as putback number #1

Closed
Altreus opened this issue Jun 9, 2014 · 1 comment
Closed

Accept integer import value as putback number #1

Altreus opened this issue Jun 9, 2014 · 1 comment
Labels

Comments

@Altreus
Copy link
Owner

Altreus commented Jun 9, 2014

With an initial argument that looks_like_number, import would put back that number of entries onto @ARGV. If @ARGV does not end with at least that many arguments that do not look like options, bail.

use Opt::Imistic qw(1);

The above will allow:

myscript -f file.txt

Opt::Imistic will then put back file.txt onto @ARGV and it will not be the value of $ARGV{f}.

@Altreus
Copy link
Owner Author

Altreus commented Jun 26, 2014

Implemented

@Altreus Altreus closed this as completed Jun 26, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant