Re: This is one of the things ...

2016-05-14 Thread Uri Guttman
On 05/14/2016 08:20 PM, lee wrote: Uri Guttman writes: On 05/14/2016 07:11 PM, chace wrote: Can you miss something you weren't aiming at? Thanks for the fun fact, Uri :) well, he asked about other langs with map like features which was the target you aimed at. so missing lisp is worth noting

Re: This is one of the things ...

2016-05-14 Thread lee
Uri Guttman writes: > On 05/14/2016 07:11 PM, chace wrote: >> Can you miss something you weren't aiming at? Thanks for the fun >> fact, Uri :) > > well, he asked about other langs with map like features which was the > target you aimed at. so missing lisp is worth noting! :) Somehow I thought li

Re: This is one of the things ...

2016-05-14 Thread Uri Guttman
On 05/14/2016 07:11 PM, chace wrote: Can you miss something you weren't aiming at? Thanks for the fun fact, Uri :) well, he asked about other langs with map like features which was the target you aimed at. so missing lisp is worth noting! :) uri -- To unsubscribe, e-mail: beginners-unsubsc

Re: This is one of the things ...

2016-05-14 Thread chace
Can you miss something you weren't aiming at? Thanks for the fun fact, Uri :) On 05/14/2016 04:09 PM, Uri Guttman wrote: On 05/14/2016 06:58 PM, Aaron Wells wrote: Ha. Java has one... but it's not very pretty. Just like anything Java, it's bloated, overly verbose, and clunky. Java just disco

Re: This is one of the things ...

2016-05-14 Thread Uri Guttman
On 05/14/2016 06:58 PM, Aaron Wells wrote: Ha. Java has one... but it's not very pretty. Just like anything Java, it's bloated, overly verbose, and clunky. Java just discovered "lambdas" a couple years ago with jdk 8. But functional languages have had lambda syntax for years. Ocaml: List.ma

Re: This is one of the things ...

2016-05-14 Thread Aaron Wells
Ha. Java has one... but it's not very pretty. Just like anything Java, it's bloated, overly verbose, and clunky. Java just discovered "lambdas" a couple years ago with jdk 8. But functional languages have had lambda syntax for years. Ocaml: List.map((*) 2)[1;2;3;4;5] Haskell: map (2*)[1,2,3,4,5]

Re: This is one of the things ...

2016-05-14 Thread lee
"Walker, Michael E" writes: > Hi, > > What framework are you all using for database development? When tracking this > thread back to the original message, I thought, "Nice syntax." I am overall > new to Perl, but am learning it for ETL at work. http://dbi.perl.org/ -- To unsubscribe, e-mail:

Re: This is one of the things ...

2016-05-14 Thread lee
Uri Guttman writes: > On 05/12/2016 08:04 PM, lee wrote: >> ... I appreciate perl for: >> >> >> $dbh->do("INSERT INTO $T_ENTRIES (" . >> join(', ', map($dbh->quote_identifier($_), $cgi->param)) . ') VALUES >> (' . >> join(', ', map($dbh->quote($_), map($cgi->param($_), $cgi->param)))

RE: This is one of the things ...

2016-05-13 Thread Walker, Michael E
o:shawnhco...@gmail.com] Sent: Friday, May 13, 2016 7:16 AM To: beginners@perl.org Subject: Re: This is one of the things ... On Fri, 13 May 2016 00:11:57 -0400 Uri Guttman wrote: > i stick to using fat comma ( => ) only for key/value pairs. it has the > side effect of quoting a bareword to t

Re: This is one of the things ...

2016-05-13 Thread Shawn H Corey
On Fri, 13 May 2016 00:11:57 -0400 Uri Guttman wrote: > i stick to using fat comma ( => ) only for key/value pairs. it has > the side effect of quoting a bareword to the left which makes those > pairs easier to read. so i never use it just for a comma though i > have seen it used like that. this

Re: This is one of the things ...

2016-05-12 Thread Uri Guttman
On 05/12/2016 11:00 PM, SSC_perl wrote: On May 12, 2016, at 7:10 PM, Shawn H Corey wrote: my $holders = join ',', ('?') x @cgi_params; PBP recommends that you put short strings that are all punctuation in q{}, so they will be easier to read. my $holders = join q{,}, (q{?}) x @cgi_params;

Re: This is one of the things ...

2016-05-12 Thread SSC_perl
On May 12, 2016, at 7:10 PM, Shawn H Corey wrote: >> my $holders = join ',', ('?') x @cgi_params; > PBP recommends that you put short strings that are all punctuation in > q{}, so they will be easier to read. > >my $holders = join q{,}, (q{?}) x @cgi_params; I realize stuff like this

Re: This is one of the things ...

2016-05-12 Thread Shawn H Corey
On Thu, 12 May 2016 21:35:02 -0400 Uri Guttman wrote: > my $holders = join ',', ('?') x @cgi_params ; > > and i like here docs for sql so i can see the sql and not need all > those quotes and noise. PBP recommends that you put short strings that are all punctuation in q{}, so they will be

Re: This is one of the things ...

2016-05-12 Thread Uri Guttman
On 05/12/2016 08:04 PM, lee wrote: ... I appreciate perl for: $dbh->do("INSERT INTO $T_ENTRIES (" . join(', ', map($dbh->quote_identifier($_), $cgi->param)) . ') VALUES (' . join(', ', map($dbh->quote($_), map($cgi->param($_), $cgi->param))) . ')') if(scalar($cgi->param)

Re: This is one of the things ...

2016-05-12 Thread Aaron Wells
Thank you Lee. I had forgotten about that use case. I tried to do dibasic query building once upon a time with JavaScript before discovering the goodness of Perl. Ended up leaning on a library. It made things better, but it didn't make them Perl. On Thu, May 12, 2016, 5:06 PM lee wrote: > > ...