Re: How to avoid using the slow array subscripting operator?

2011-05-29 Thread Xi Liu
I guess I should provide some real code. below is a tiny module I grabbed from my project which is not that privacy but sufficient for discussion. #/usr/bin/perl use warnings; use 5.010; use Carp; use DB_File; { my %sum_cache; my %deviation_cache; tie %sum_cache => 'DB_File', "sum_cac

Re: Ten Years of Considerate Help

2011-05-29 Thread Rob Dixon
On 30/05/2011 01:57, Casey West wrote: On Fri, Apr 22, 2011 at 12:59 AM, Casey West wrote: 1.10 - Who will maintain peace and flow on the list? [...] -- http://learn.perl.org/faq/beginners.html#1.10+who+will+maintain+peace+and+flow+on+the+list Casey, in view of what you have said

Re: Ten Years of Considerate Help

2011-05-29 Thread Casey West
On Fri, Apr 22, 2011 at 12:59 AM, Casey West wrote: > 1.10 - Who will maintain peace and flow on the list? > > [...] > -- > http://learn.perl.org/faq/beginners.html#1.10+who+will+maintain+peace+and+flow+on+the+list > > Anyone here with the desire and temperament can do that. If you would l

Re: displaying data from mysql onto browser in correct format .. (using template toolkit )

2011-05-29 Thread Octavian Rasnita
From: "Agnello George" > > >> This interpolation of string variables into an SQL statement is an SQL >> injection attack waiting to happen: >> >> * http://en.wikipedia.org/wiki/SQL_injection >> >> * http://community.livejournal.com/shlomif_tech/35301.html >> >> * http://bobby-tables.com/ >> >> Pl

Re: displaying data from mysql onto browser in correct format .. (using template toolkit )

2011-05-29 Thread Agnello George
> > This interpolation of string variables into an SQL statement is an SQL > injection attack waiting to happen: > > * http://en.wikipedia.org/wiki/SQL_injection > > * http://community.livejournal.com/shlomif_tech/35301.html > > * http://bobby-tables.com/ > > Please avoid it by using placeholders.

Re: binmode in perl -p oneliner Optionen

2011-05-29 Thread Thomas Liebezeit
Thank you, John and Uri. I got a hint to use -e "binmode ARGVOUT" and it did the trick for me! JWK> BTW your substitution operator replaces only the first 'A' it finds JWK> with 'B'. If you want to replace all 'A's with 'B's then you have to JWK> use the /g option on the substitution: s/A/B/g.