Re: [META] [Essay] How to Handle Criticism + Encouraging People to Criticise and Offend You

2014-08-28 Thread 'lesleyb'
On Thu, Aug 28, 2014 at 12:12:16PM +0300, Shlomi Fish wrote: > Hi all, > > like the title mentions this a short essay with a two-fold message. It is > posted only to beginners@perl.org (for now) and is about criticism. > > 1. Handling criticism: > -- > > People like to critic

Re: suppress the warnings output

2014-05-20 Thread 'lesleyb'
t;, > $user, $passwd, {RaiseError=>1,PrintError=>0} ) > or croak $DBI::errstr; >     1; > } catch { >     _write_log($_); >     return undef; > }; if ($success) { >     ... > } > Youghua Thank you for posting an interesting problem and the solution you found

Re: split an html file

2014-04-21 Thread 'lesleyb'
On Thu, Apr 17, 2014 at 10:01:35AM -0700, Mike McClain wrote: > Hi, > My brother Rick, a windrider, put together a webpage, > http://www.photographers1.com/Sailing/NauticalTerms&Nomenclature.html > about sailing and wind surfing that has grown too large and should be > split into smaller sectio

Re: use sys::virt module to manage VM in kvm

2014-03-28 Thread lesleyb
On Thu, Mar 27, 2014 at 01:41:53PM -0400, PJ wrote: > I’m new to perl too…but do they have a concept of abstract classes in perl? > On Mar 27, 2014, at 3:27 AM, lesleyb wrote: > > > On Wed, Mar 26, 2014 at 06:43:47PM -0700, Jim Gibson wrote: > >> > >> On M

Re: use sys::virt module to manage VM in kvm

2014-03-27 Thread 'lesleyb'
On Wed, Mar 26, 2014 at 06:43:47PM -0700, Jim Gibson wrote: > > On Mar 26, 2014, at 6:30 PM, Benjamin Fernandis wrote: > > > Hi, > > > > I am new with perl and we have virtual machines in our infra. i want to use > > perl sys::virt module to manage them, means to shutdown / start vm by > > sc

Re: exception handling

2014-02-14 Thread 'lesleyb'
On Thu, Feb 13, 2014 at 02:43:03PM -0600, Bill McCormick wrote: > I have a Perl module that calls a function from in a Swig generated > module, which in turn calls a function in a shared library. It's > been a while since I put it all together and made it work, so I'm > kind of hazy on the technica

Re: OO perl programming

2014-02-06 Thread 'lesleyb'
On Wed, Feb 05, 2014 at 11:52:39PM -0600, Sam wrote: > On 02/05/2014 04:30 PM, kavita kulkarni wrote: > >Can somebody suggest me good book to learn/practice object oriented Perl > >programming. > > > > > >Regards, > >Kavita :-) > > > Beginning Perl by Curtis Poe is a really good read. Also there

Re: Help on saving and retrieving data structures

2013-09-13 Thread 'lesleyb'
On Fri, Sep 13, 2013 at 01:31:47PM +0100, David Precious wrote: > On Fri, 13 Sep 2013 19:10:58 +0800 (SGT) > *Shaji Kalidasan* wrote: > > I am saving the data structure to a file and retrieving it back > > again, but, when I 'use strict' it is giving the following error > > message > > > > Global

Re: Help on saving and retrieving data structures

2013-09-13 Thread 'lesleyb'
On Fri, Sep 13, 2013 at 07:10:58PM +0800, *Shaji Kalidasan* wrote: > Dear Perlers, > > I am saving the data structure to a file and retrieving it back again, but, > when I 'use strict' it is giving the following error message > > Global symbol "%game" requires explicit package name This message

Re: Is there a way to generate HTML reports?

2013-07-08 Thread 'lesleyb'
On Sat, Jul 06, 2013 at 10:43:30PM +0800, *Shaji Kalidasan* wrote: > Greetings, > > As I understand, Perl has excellent report-generation capabilities. By using > formats, we can actually visualize how our output will look because the > definition of a format in Perl is very similar to what you

Re: Perl and Web Development

2013-06-03 Thread 'lesleyb'
On Mon, Jun 03, 2013 at 05:52:02PM -0400, Rich Johnson wrote: > Can anyone recommend a good book to use for building a website using Perl? > Specifically, I'm looking to build a backend to a mobile app. Everything > I've been trying to search for seems dated (2005 and earlier). > As mentioned by a

Re: recover data generated by jqurety from a form

2013-05-29 Thread 'lesleyb'
On Wed, May 29, 2013 at 03:09:51PM +0200, Pau Marc Muñoz Torres wrote: > Hi guys > > i have a problem recovering from data using my cgi, lets says i got the > following form > > > > onclick="getCSVData()"> > > > > And i want to recover the info generated by the javascript funtion (

Re: perl interpreter output meaning?

2012-09-22 Thread 'lesleyb'
On Sat, Sep 22, 2012 at 09:45:08AM +0200, Anne Wainwright wrote: > Hi, > > this is the output. > > Use of uninitialized value $9 in concatenation (.) or string at > pg_delim2htm_01.pl line 89, <> line 1. > Use of uninitialized value $9 in concatenation (.) or string at > pg_delim2htm_01.pl line 8

Re: xml parsing

2012-08-16 Thread &#x27;lesleyb'
On Thu, Aug 16, 2012 at 04:55:33AM -0700, Irfan Sayed wrote: > hi, > > i need to parse the xml file and store the data in array : > > here is the code: > use XML::Simple; > > my $ItemGroup = XMLin('C:\Users\bvcontrolbuild\Desktop\data.xml'); > > foreach my $BuildProject (@{$ItemGroup->{BuildPro

PerlSchool

2012-07-26 Thread &#x27;lesleyb'
Hi Just to let people know this is a happening http://perlschool.co.uk/ The first course on 4th August is fully booked but a second is coming up in October. It's run by Dave Cross who has a great deal of knowledge to share. Kind Regards Lesley -- To unsubscribe, e-mail: beginners-unsubscr

Re: mod_perl for n00bs

2012-06-05 Thread &#x27;lesleyb'
On Tue, Jun 05, 2012 at 08:37:33AM -0400, Mark Haney wrote: > On 06/04/2012 09:25 PM, pangj wrote: > > > >>I want to understand why Mark thinks he needs mod_perl. If it's just > >>because he wants to speed up his app (soup up the engine) there might > >>be things he can do that don't require rewrit

Re: perl based shopping cart

2012-05-08 Thread &#x27;lesleyb'
On Tue, May 08, 2012 at 07:44:43PM +0530, Chankey Pathak wrote: > Hi folks, > > One of my friend is having a problem, he is not in the mailing list so I am > posting this problem on his behalf. Please check how can this problem be > solved and let me know, I'll let him know the answer, thanks :) >

Re: Template toolkit issue [SOLVED]

2012-05-05 Thread &#x27;lesleyb'
On Thu, May 03, 2012 at 01:30:41PM -0500, Bill Stephenson wrote: > I use CGI.pm to build web apps all the time. > > I think the notion that CGI and CGI.pm is out dated is kind of silly in fact. > > Using CGI.pm with HTML::Template is still a very fast and efficient way to > develop web apps. A

Re: & and subroutine

2012-04-17 Thread &#x27;lesleyb'
On Mon, Apr 16, 2012 at 04:20:35PM +0200, Paul Johnson wrote: > On Mon, Apr 16, 2012 at 06:53:53AM -0700, Paul.G wrote: > > Hi All > > > > Have a question, is it good coding practice to use a & when calling a > > subroutine, or it is not required, or it doesn't matter? > > It's good practice not

Re: How Can I find all kinds of methods a Object support?

2012-04-11 Thread &#x27;lesleyb'
On Wed, Apr 11, 2012 at 04:12:22PM +0800, Zapp wrote: > How Can I find all kinds of methods a Object support? > For example: > > my $fh = IO::File->new("/path/to/file"); > > how manny kinds of methods does the $fh have ? > > I try perldoc IO::File , but didn't find what I want. My local copy of

Re: a question about @ISA

2012-04-09 Thread &#x27;lesleyb'
On Mon, Apr 09, 2012 at 12:59:04PM +0300, Shlomi Fish wrote: > Hi xiaolan, > > On Mon, 9 Apr 2012 16:13:36 +0800 > xiaolan wrote: > > > Hi, > > > > I just want to send email using MIME::Lite with Net::SMTP::SSL. > > But MIME::Lite is going only with Net::SMTP by default. > > So I searched and f

Re: a question about @ISA

2012-04-09 Thread &#x27;lesleyb'
On Mon, Apr 09, 2012 at 04:13:36PM +0800, xiaolan wrote: > Hi, > > I just want to send email using MIME::Lite with Net::SMTP::SSL. > But MIME::Lite is going only with Net::SMTP by default. > So I searched and found a hack: > > use Net::SMTP::SSL; > BEGIN { @MIME::Lite::SMTP::ISA = qw(Net::SMTP::S

Free Fundamentals of Perl Programming course

2012-03-26 Thread &#x27;lesleyb'
Hi Came across this http://alison.com/courses/Perl-Programming?utm_source=outbound+marketing&utm_medium=email&utm_campaign=new_courses_11_perl_programming A Fundamentals of Perl Programming course by Mark Berman. Seems to cover the basics but I haven't exactly gone through it with a fine toot

beginners@perl.org

2012-03-07 Thread &#x27;lesleyb'
On Thu, Mar 08, 2012 at 12:41:01AM +0800, lina wrote: > Hi, > > $ ./substr_accessing_examples.pl > Undefined subroutine &main::subst called at > ./substr_accessing_examples.pl line 15. > > #!/usr/bin/env perl > > use strict; > use warnings; > > # > # get a 5-byte string, skip 3 bytes, > # then

Re: Learning perl

2012-03-06 Thread &#x27;lesleyb'
On Mon, Mar 05, 2012 at 07:42:24PM -0800, David Christensen wrote: > On 03/05/2012 07:19 AM, lina wrote: > >Which books are the best perl books you have ever read? > > 1. Learning Perl -- this book gets you up the initial learning > curve. Read it cover to cover, enter and play with the example c

Re: Taint mode CGI problem

2011-11-12 Thread &#x27;lesleyb'
On Sat, Nov 12, 2011 at 08:24:52AM -0300, Tessio Fechine wrote: > But why the same code works fine at command line? That's what bothers me > most. > And.. there is no code duplication. search.pl is a normal script that I use > at command line. I just want to output the result in a web page. > > Th

Re: Validating input

2011-10-02 Thread &#x27;lesleyb'
On Sun, Oct 02, 2011 at 07:14:00PM +0300, Octavian Rasnita wrote: > From: "Shlomi Fish" > > On Sun, 2 Oct 2011 00:07:34 +0300 > "Octavian Rasnita" wrote: > > > Hi, > > > > Does anyone have some suggestions for what restrictions should be used on a > > site to be secure? > > Do you know some s

Re: Need help getting data from a structure..

2011-09-28 Thread &#x27;lesleyb'
On Wed, Sep 28, 2011 at 09:33:50AM -0500, Frank Kleinburg wrote: > Hello list, > > I've been playing with perl going back to the 4.x days, mostly simple > scripts to monitor server or application daemons, kick off and manage > backups, or read log files.. While some of these programs are fairly >

Re: /usr/lib/perl5/auto/Cwd/Cwd.so: undefined symbol: Perl_Gthr_key_ptr [SOLVED?]

2011-09-21 Thread &#x27;lesleyb'
On Wed, Sep 21, 2011 at 11:13:13AM -0400, Robert P. J. Day wrote: > On Wed, 21 Sep 2011, Paul Johnson wrote: > > > On Wed, Sep 21, 2011 at 08:31:10AM -0400, Robert P. J. Day wrote: > > ... snip ... > > > > p.s. is there a way to identify which perl module supplies the > > > Perl_Gthr_key_ptr sy

Re: /usr/lib/perl5/auto/Cwd/Cwd.so: undefined symbol: Perl_Gthr_key_ptr

2011-09-21 Thread &#x27;lesleyb'
On Wed, Sep 21, 2011 at 08:31:10AM -0400, Robert P. J. Day wrote: > On Wed, 21 Sep 2011, 'lesleyb' wrote: > > > On Wed, Sep 21, 2011 at 07:24:51AM -0400, Robert P. J. Day wrote: > > > > > > argh ... after just skipping the component that was causing th

Re: /usr/lib/perl5/auto/Cwd/Cwd.so: undefined symbol: Perl_Gthr_key_ptr

2011-09-21 Thread &#x27;lesleyb'
On Wed, Sep 21, 2011 at 07:24:51AM -0400, Robert P. J. Day wrote: > > argh ... after just skipping the component that was causing the > earlier error, i got further and then this: > Probably a good idea to unskip it and fix the problem there first. > perl: symbol lookup error: /usr/lib/perl5/a

Re: cpan or perl -MCPAN ?

2008-04-04 Thread LesleyB
Thanks for the reply Yitze. I simply wondered whether there was any benefit. I haven't yet tried the perl -MCPAN approach but have spent most of the day in cpan. I would expect to see perl -MCPAN in an anutomated approach somewhere I guess. I have successfully updated some modules locally using

cpan or perl -MCPAN ?

2008-04-03 Thread LesleyB
Hi I'm using Linux for some perl play. Which method is considered better - using cpan as a command at the command line or using 'perl -MCPAN -e ..'' ? Does using CPAN by either method above ensure the latest version of any given module or does it give the latest module for the particular version

Question about CGI.pm

2008-03-25 Thread LesleyB
Hi I have been exploring CGI.pm and am of course interested in the HTML escaping procedure. perldoc CGI thrwos up this "By default, all HTML that is emitted by the form-generating functions is passed through a function called escapeHTML(): $escaped_string = escapeHTML("unescaped string")

Re: copy array

2008-03-25 Thread LesleyB
Sharan Basappa wrote: > Hi, > > Is there a way I can copy only part of an array into another array. > For example, I want to copy only first 8 elements of source array > into destination array. > > Regards I think you might need this technique #!/usr/bin/perl -w use strict; # my @arr1 =