Re[2]: Make scalar tainted

2014-12-06 Thread Артём Варнайский
Paul Johnson wrote: >I'm not sure whether there is a more elegant or more vanilla way to do >that. Appending the zero length substr is also the way it is done in >the perl core. > >You would normally take the substr from the original string before >splitting it, unless you wanted to taint $foo eve

Re: Make scalar tainted

2014-12-06 Thread Ron Bergin
Артём Варнайский wrote: > Hello again! > Prompt me please elegant and 'vanilla' way to taint some scalar. My vars > lost their taint when I just split external string with regexp on > param/val pairs, without checking them for correctness. > And What do you say about this: > $foo.=s

Re: Make scalar tainted

2014-12-06 Thread Paul Johnson
On Sat, Dec 06, 2014 at 05:48:36PM +0300, Артём Варнайский wrote: > Hello again! > Prompt me please elegant and 'vanilla' way to taint some scalar. My vars lost > their taint when I just split external string with regexp on param/val pairs, > without checking them for correctness. > And What do

Make scalar tainted

2014-12-06 Thread Артём Варнайский
Hello again! Prompt me please elegant and 'vanilla' way to taint some scalar. My vars lost their taint when I just split external string with regexp on param/val pairs, without checking them for correctness. And What do you say about this: $foo.=substr($ENV{PATH},0,0); #$foo tainted if $ENV{PAT

Re: why is if (! @ARGV) skipped

2014-12-06 Thread Harry Putnam
Brandon McCaig writes: > Hope that helps. Yes it does. Thanks for the continuing review and criticism much needed in my case... -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: LDAP server

2014-12-06 Thread Natxo Asenjo
On Fri, Dec 5, 2014 at 5:35 AM, Jitendra Barik wrote: > Hi All, > > Could you please let me know please, why this code is not working as I am > trying to validate my email id to my mail server? > > > my $ldap_server = "google.com"; # or some local mail server > my $ldap = Net::LDAP -> new($ldap_s

Re: LDAP server

2014-12-06 Thread Jitendra Barik
Hi David, I am trying to get active user in ldap. Regards, Jitendra On Fri, Dec 5, 2014 at 4:12 PM, David Precious wrote: > On Fri, 5 Dec 2014 10:05:20 +0530 > Jitendra Barik wrote: > > > Could you please let me know please, why this code is not working as > > I am trying to validate my email