Re: destroy widget

2012-09-12 Thread Irfan Sayed
i am stuck. can someone please suggest regards, irfan From: Irfan Sayed To: Ron Bergin ; Shlomi Fish ; Perl Beginners Sent: Saturday, September 8, 2012 8:10 PM Subject: Re: destroy widget please suggest regards irfan ___

Re: destroy widget

2012-09-12 Thread Shlomi Fish
Hi Irfan, On Fri, 7 Sep 2012 04:10:47 -0700 (PDT) Irfan Sayed wrote: > thanks ron. it worked! > i need plz another suggestion. > > in scrolled text window, i need text to be printed line by line > instead of bulk printing entire output. please find the attached > code. > > in code, there is l

Re: Recommendations for emacs customizations for editing Perl

2012-09-12 Thread Paul Anderson
Install PDE from CPAN and it'll work alright. It works fine for me on 5.16.1. Paul Anderson -- VE3HOP On 2012-09-12, at 12:08 AM, Vic Sage wrote: > I'd like to hear some recommendations from this list for customizations to > emacs for coding Perl. > > One seemingly respected site,

Re: Recommendations for emacs customizations for editing Perl

2012-09-12 Thread Torqued
On 12-Sep-2012, at 9:38, Vic Sage wrote: > I'd like to hear some recommendations from this list for customizations to > emacs for coding Perl. > > One seemingly respected site, http://emacswiki.org/emacs/PerlLanguage, has a > lot of links but unfortunately some are pretty dated. For example

Help with the can() method

2012-09-12 Thread pangj
Hi, Today I wrote a script for validate a dns record from the specified DNS server, the subroutine is: sub validate_dns { my $host = shift; # a host, for example, www.google.com my $value = shift; # the host's DNS value, may be a CNAME or an iP address my $dns = shift; # DNS server

Re: Recommendations for emacs customizations for editing Perl

2012-09-12 Thread Vic Sage
On Sep 11, 2012, at 11:45 PM, Shlomi Fish wrote: > Hi pangj, > > On Wed, 12 Sep 2012 12:28:54 +0800 > pangj wrote: > >> Have been coding perl with VIM always. >> > > Good for you, but the original question was about Emacs and it is a legitimate > question. I had no idea how popular Vi/Vim

Re: Recommendations for emacs customizations for editing Perl

2012-09-12 Thread Paul Anderson
Another thing to look out for in PDE is a line like: use 5.14; It appears that newer versions of perl will interpret this as version 5.140, not 5.14. You need a zero, like so: use 5.014; Then it will interpret it properly. >From my ~/.emacs: (defalias 'perl-mode 'cperl-mode) (setq cperl-hai

Re: Help with the can() method

2012-09-12 Thread Paul Anderson
Did you copy and paste that code? Do you know that when calling can() you are using $ojb instead of $obj? Paul Anderson -- VE3HOP On 2012-09-12, at 9:17 AM, pangj wrote: > Hi, > > Today I wrote a script for validate a dns record from the specified DNS > server, the subroutine is: >

Using different libraries dynamically

2012-09-12 Thread Mark Haney
I've got what I hope is an easy question to answer. I've got a perl web app that I've setup with a 'live' version (more like a beta actually) and a dev version for me to make changes to that might break the other site. The way I inherited it was as a single site using 'use lib' with the libr

Re: Using different libraries dynamically

2012-09-12 Thread Shawn H Corey
On Wed, 12 Sep 2012 10:18:49 -0400 Mark Haney wrote: > My question is, what IS standard practice for this? The standard practice is to ensure that the development, test, and production environments are exactly the same. Even the smallest difference can cause no end of problems. -- Just my 0.0

Re: Using different libraries dynamically

2012-09-12 Thread Rob Dixon
On 12/09/2012 15:18, Mark Haney wrote: I've got what I hope is an easy question to answer. I've got a perl web app that I've setup with a 'live' version (more like a beta actually) and a dev version for me to make changes to that might break the other site. The way I inherited it was as a singl

Re: Recommendations for emacs customizations for editing Perl

2012-09-12 Thread Vic Sage
On Sep 12, 2012, at 5:59 AM, Paul Anderson wrote: > Install PDE from CPAN and it'll work alright. It works fine for me on 5.16.1. So it does. I was concerned that PDE hadn't been updated in four years. But I gather it works well with all the recent syntax? V -- To unsubscribe, e-mail:

Re: Recommendations for emacs customizations for editing Perl

2012-09-12 Thread Paul Anderson
I haven't had any trouble. I think IIRC it may be confused a little by given/when, but not badly. Paul Anderson -- VE3HOP On 2012-09-12, at 12:20 PM, Vic Sage wrote: > > On Sep 12, 2012, at 5:59 AM, Paul Anderson wrote: > >> Install PDE from CPAN and it'll work alright. It works f

Re: Using different libraries dynamically

2012-09-12 Thread Mark Haney
On 09/12/2012 10:57 AM, Rob Dixon wrote: Hey Mark I suggest you use set the MYLIBPATH environment variable to the directory you want to use and then do use lib $ENV{MYLIBPATH} at the head of your program HTH, Rob Thanks Rob, I'll look into it. -- Mark Haney Software Developer/Consu

Re: Help with the can() method

2012-09-12 Thread pangj
Sorry this is just my typo. 于 12-9-12 下午10:10, Paul Anderson 写道: Did you copy and paste that code? Do you know that when calling can() you are using $ojb instead of $obj? Paul Anderson -- VE3HOP -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-ma

Re: Using different libraries dynamically

2012-09-12 Thread Peter Scott
On Wed, 12 Sep 2012 10:18:49 -0400, Mark Haney wrote: > I've got what I hope is an easy question to answer. I've got a perl web > app that I've setup with a 'live' version (more like a beta actually) > and a dev version for me to make changes to that might break the other > site. > > The way I i

Re: Using different libraries dynamically

2012-09-12 Thread Bill Stephenson
On Sep 12, 2012, at 9:18 AM, Mark Haney wrote: > My question is, what IS standard practice for this? I use a few different methods. One is to make the changes on the dev box, then use BBEdit to "Compare" that to the file used on the live server. BBEdit allows me to copy just the lines of code