LMPX.COM |
Home | Linux | Mysql | PHP | XML | ||
|
|
|||
From: Chris Dolan Date: Mon Mar 31 22:37:05 2008 Subject: Re: YN golf
On Mar 31, 2008, at 6:54 PM, Philippe Bruhat (BooK) wrote: > On Mon, Mar 31, 2008 at 04:34:58PM -0700, Rick Klement wrote: >> >> perl -le 'print for glob"{Y,N}"x5' >> > > Of course you have to run this in a directory that doesn't contain > any file matching /^[YN]{5}$/. Not true. The {} notation doesn't care whether files of that name actual exist. I tested like so on Mac: % touch YYYYY % perl -le 'print for glob"{Y,N}"x5' YYYYY YYYYN YYYNY YYYNN YYNYY YYNYN YYNNY YYNNN YNYYY YNYYN YNYNY YNYNN YNNYY YNNYN YNNNY YNNNN NYYYY NYYYN NYYNY NYYNN NYNYY NYNYN NYNNY NYNNN NNYYY NNYYN NNYNY NNYNN NNNYY NNNYN NNNNY NNNNN
| Navigate in group perl.fwp at sever nntp.perl.org | |
| Previous | Next |
| © No Copyright You are free to use Anything |
Site Maintained by PHP Developer
Powered By PHP Consultants |