Re: hash function and combining function/operator

2013-09-24 Thread David Christensen
On 09/24/13 00:12, Dr.Ruud wrote: I assume this is about paths and filenames. Have you considered an rsync dry-run? I use "rsync -n ..." frequently. I also assume that you want to communicate as little as possible, so you don't have supersets of all strings on all sides. (or it would become

Re: question about perl 6 sigils

2013-09-24 Thread Octavian Rasnita
From: Andy Bach On Tue, Sep 24, 2013 at 10:44 AM, Shawn H Corey wrote: There is also a third group who want to get rid of sigils entirely. ;) Ahhh! Blasphemy, Blasphemer! That way lies chaos! Dogs and cats, living together! NEVER! ... And I was going to add that there is a four

Re: question about perl 6 sigils

2013-09-24 Thread Luca Ferrari
On Tue, Sep 24, 2013 at 5:27 PM, Andy Bach wrote: > Did you read the exegesis? Damian is one of the smartest guys you'll ever > hear speak (his book "Perl Best Practices", for one, is worth it's weight in > classrooms - er, something like that). It's not that you're wrong or that > the argument

Re: question about perl 6 sigils

2013-09-24 Thread Andy Bach
On Tue, Sep 24, 2013 at 10:44 AM, Shawn H Corey wrote: > > There is also a third group who want to get rid of sigils entirely. ;) > Ahhh! Blasphemy, Blasphemer! That way lies chaos! Dogs and cats, living together! NEVER! Er, sorry. As the exegesis are deprecated (though still worth the reads jus

Re: question about perl 6 sigils

2013-09-24 Thread Shawn H Corey
On Tue, 24 Sep 2013 10:27:24 -0500 Andy Bach wrote: > Did you read the exegesis? Damian is one of the smartest guys you'll > ever hear speak (his book "Perl Best Practices", for one, is worth > it's weight in classrooms - er, something like that). Perl::Critic and its script, perlcritic, follow

Re: About variables passed to sub routines

2013-09-24 Thread Andy Bach
On Tue, Sep 24, 2013 at 8:23 AM, Harry Putnam wrote: > The way in use in script below works... quotations around "@_", so the > content is passed rather than the element count. And the ways that > are commented out also work. > Yeah, that's a bit of a fragile idiom - inside dbl quotes, arrays a

Re: question about perl 6 sigils

2013-09-24 Thread Andy Bach
On Tue, Sep 24, 2013 at 3:43 AM, Luca Ferrari wrote: > What I don't understand here is why we have to keep the true > sigil for any access. > Did you read the exegesis? Damian is one of the smartest guys you'll ever hear speak (his book "Perl Best Practices", for one, is worth it's weight in cla

Re: About variables passed to sub routines

2013-09-24 Thread Nathan Hilterbrand
See below, please. On 09/24/2013 09:23 AM, Harry Putnam wrote: Somehow I had it my mind that perl would recognize an incoming variable to a sub routine like: sub test($var) As $_ if there was only one element to @_, But I see from testing that, no, not true. These three methods below a

About variables passed to sub routines

2013-09-24 Thread Harry Putnam
Somehow I had it my mind that perl would recognize an incoming variable to a sub routine like: sub test($var) As $_ if there was only one element to @_, But I see from testing that, no, not true. These three methods below all work. Perhaps there are others. if ( -f "@_" ) (my $fname) =

Re: question about perl 6 sigils

2013-09-24 Thread Luca Ferrari
On Tue, Sep 24, 2013 at 12:52 AM, Andy Bach wrote: > I liked it, after I > understood it. I posted the question for the same reason: I believe that having the sigil meaning what you (are thinking) you are accessing was a great idea. What I don't understand here is why we have to keep the true sig

Re: hash function and combining function/operator

2013-09-24 Thread Dr.Ruud
On 24/09/2013 00:17, David Christensen wrote: I'm looking for a hash function and a related function or operator such that: H(string1 . string2) = f(H(string1), H(string2)) H(string1 . string2) = H(string1) op H(string2) where: H() is the hash function string1 i