in reply to Re: Re: Re: Re: (Golf) Friday Golf: Print Formatted Sequence of Digits (0 :)
in thread (Golf) Friday Golf: Print Formatted Sequence of Digits
The shell is not mucking around with the input one bit. It interprets single quotes for itself, though, so Perl gets to see a literal 002..020. It works if you backslash the single quotes.
I far prefer a slight inconvenience in cases like this over having to work around a braindead (lack of) quoting mechanisms for the general case. Although CMD.EXE has borrowed enough bashishms that's it's barely bearable nowadays..
Makeshifts last the longest.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re^5: (Golf) Friday Golf: Print Formatted Sequence of Digits (0 :)
by BrowserUk (Patriarch) on Aug 14, 2003 at 21:56 UTC |