Re: backticks

2004-04-14 Thread Simon Cozens
[EMAIL PROTECTED] (Aaron Sherman) writes: $ find . -name \*.pl | wc -l 330 $ find . -name \*.pl -exec grep -hlE 'qx|`|`|readpipe' {} \; | wc -l 123 `` gets used an awful lot But that's in Perl 5, which is a glue language. -- Though a program be but

Re: backticks

2004-04-14 Thread Matthijs van Duin
On Wed, Apr 14, 2004 at 01:36:21PM -0600, John Williams wrote: %hash`$key oops, you contradicted yourself here. only be useable for \w+ keys I guess you disliked his idea so much you didn't bother to read what exactly he said, right? As with methods, a simple [...] scalar should be usable

Re: backticks

2004-04-14 Thread Jarkko Hietaniemi
hash slices aren't used much at all. People *always* overgeneralize.

Re: backticks

2004-04-14 Thread Scott Walters
Juerd, You'd do well to not remove the conclusion of my post when the conclusion is that the I strongly support you. Otherwise, your reply, read out of context, sounds like you're fending off an attacker ;) People would do well to seperate the merits of the idea from the merits of the suggested

Re: backticks

2004-04-14 Thread Scott Walters
I propose we pretend that $$foo = 'bar' stills work and use that as a benchmark for hash subscripting ease. If it requires fewer keystrokes or neuron fires to write Perl 4 code, then Perl 6 might be succeding on the programming in the small but failing at programming in the large. ${'bar'} =

Re: backticks

2004-04-14 Thread Luke Palmer
Scott Walters writes: Juerd, You'd do well to not remove the conclusion of my post when the conclusion is that the I strongly support you. Otherwise, your reply, read out of context, sounds like you're fending off an attacker ;) People would do well to seperate the merits of the idea from

RE: backticks

2004-04-14 Thread Chris
Perhaps this is naive, but couldn't something like this be achieved in a manner similar to how I just implemented it in Ruby? Surely Perl will have similar capabilities to handle unknown methods. class Hash def method_missing(method_name) str = method.id2name if str =~ /^\w+$/

Re: backticks

2004-04-14 Thread Joe Gottman
- Original Message - From: Simon Cozens [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, April 14, 2004 5:04 PM Subject: Re: backticks [EMAIL PROTECTED] (Aaron Sherman) writes: $ find . -name \*.pl | wc -l 330 $ find . -name \*.pl -exec grep

Re: backticks

2004-04-14 Thread Jonathan Scott Duff
On Wed, Apr 14, 2004 at 10:31:23PM -0400, Joe Gottman wrote: [EMAIL PROTECTED] (Aaron Sherman) writes: $ find . -name \*.pl | wc -l 330 $ find . -name \*.pl -exec grep -hlE 'qx|`|`|readpipe' {} \; | wc -l 123 `` gets used an awful lot

Re: backticks

2004-04-14 Thread Dave Whipp
Jonathan Scott Duff [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Wed, Apr 14, 2004 at 10:31:23PM -0400, Joe Gottman wrote: And Perl 6 isn't? I use backticks quite a bit in Perl, and I don't see that changing if I upgrade to Perl 6. Me too, but I write my backticks like

Re: backticks

2004-04-14 Thread David Storrs
On Wed, Apr 14, 2004 at 10:06:23PM +0200, Juerd wrote: If on your keyboard ` is in a worse place than {}, I'd like to know where it is. Juerd Very top row, one space right of the F12 key. Extremely awkward. (This is a US keyboard on a Dell Inspiron 5100 laptop.) Please put me down as

<    1   2