Skip to content

Commit

Permalink
Clarify a bit the $*ARGFILES in MAIN
Browse files Browse the repository at this point in the history
  • Loading branch information
zoffixznet committed Jul 5, 2017
1 parent 030df46 commit 0aa72aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion v6d.pod
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ Zoffix

It being based on @*ARGS is virtually never useful when you handle any sort of non-file arguments (which is what using MAIN implies).
To allow lines(), get(), words(), and slurp() to Do The Right Thing when called and use $*IN, we should swap $*ARGFILES to $*IN
(or to IO::ArgFiles.new($*IN), to maintain $*ARGFILES type consistency).
(or to IO::ArgFiles.new($*IN), to maintain $*ARGFILES type consistency), when we're inside sub MAIN(){} and only maintain the current behaviour of considering @*ARGS when outside of MAIN.

Relevant discussions:

Expand Down

0 comments on commit 0aa72aa

Please sign in to comment.