I agree with your example of using open to handle a CRLFish file on a *nix system. The rest of this post is just to satisfy my curiosity.
$ARGV[0] = \do{$win_file};
I don't understand the purpose of munging @ARGV in this way. Any scalar can be opened by reference as a RAM file. If the reason for initializing the scalar in a BEGIN block was to create a lexically private scalar, then assigning a reference to it to an element of the global @ARGV array defeats this purpose.
Give a man a fish: <%-{-{-{-<
In reply to Re^2: [OT]: missing character when reading input file
by AnomalousMonk
in thread missing character when reading input file
by JediGorf
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |