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
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
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
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
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
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]
"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:
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)))
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
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
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;
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
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
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)
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:
>
> ...
15 matches
Mail list logo