in reply to !~ /\w/ challenge, anyone?
I mean really, just because underscore is matched by \w is no reason to exclude it from this challenge. (And yes, i too missed that requirement.)perl -lpe'}{$_=$.' file
Oh drat ... i just realized that mine is very similar to thelenm's and his just beat mine up ...
Oh double drat ... i just realized that this isn't mine at all ... i sub-consciously lifted it from Abigail-II over at Re: How To Count Lines In File?. My apologies, Abigail-II (and i finally figured out why you used the globs :)).jeffa
L-LL-L--L-LL-L--L-LL-L-- -R--R-RR-R--R-RR-R--R-RR B--B--B--B--B--B--B--B-- H---H---H---H---H---H--- (the triplet paradiddle with high-hat)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (jeffa) Re: !~ /\w/ challenge, anyone?
by thelenm (Vicar) on Feb 05, 2003 at 18:53 UTC | |
|
Re: No ... but how about a !~ /[a-z0-9]/i challenge?
by John M. Dlugosz (Monsignor) on Feb 05, 2003 at 20:39 UTC | |
by jeffa (Bishop) on Feb 06, 2003 at 14:15 UTC |