Re:confused about reference

2008-10-30 Thread Jeff Pang
> Message du 31/10/08 04:08 > De : "Richard Lee" > A : "Perl Beginners" > Copie à : > Objet : confused about reference > > > > I was just testing some reference and while trying out below I am trying > to understand below > > @{$yahoo->{yahoo}}... I can see that this is pointing to 0,1

Re: confused about reference

2008-10-30 Thread Richard Lee
Richard Lee wrote: I was just testing some reference and while trying out below I am trying to understand below @{$yahoo->{yahoo}}... I can see that this is pointing to 0,1,3 by running the code. But I am trying to really understand whether this is trying to say since value of 'yah

Re:confused about reference

2008-10-30 Thread Jeff Pang
> Message du 31/10/08 04:08 > De : "Richard Lee" > A : "Perl Beginners" > Copie à : > Objet : confused about reference > > > > I was just testing some reference and while trying out below I am trying > to understand below > > @{$yahoo->{yahoo}}... I can see that this is pointing to 0,1,3 >

confused about reference

2008-10-30 Thread Richard Lee
I was just testing some reference and while trying out below I am trying to understand below @{$yahoo->{yahoo}}... I can see that this is pointing to 0,1,3 by running the code. But I am trying to really understand whether this is trying to say since value of 'yahoo' is array put @ a

Re: How to put a global variable in a package, accessible to users of that package?

2008-10-30 Thread Mr. Shawn H. Corey
On Thu, 2008-10-30 at 23:43 +, Rob Dixon wrote: > mrstevegross wrote: > > > > I have a package named "Foo" in which I want to define some package- > > level constants (such as $VAR="soemval"). I want those constants > > available to users of package Foo, so the following code would work: > > >

Re: How to put a global variable in a package, accessible to users of that package?

2008-10-30 Thread Rob Dixon
mrstevegross wrote: > > I have a package named "Foo" in which I want to define some package- > level constants (such as $VAR="soemval"). I want those constants > available to users of package Foo, so the following code would work: > > === foo.pl === > package foo; > use constant VAR => "someval";

How to put a global variable in a package, accessible to users of that package?

2008-10-30 Thread mrstevegross
I have a package named "Foo" in which I want to define some package- level constants (such as $VAR="soemval"). I want those constants available to users of package Foo, so the following code would work: === foo.pl === package foo; use constant VAR => "someval"; === bar.pl === use foo; print $foo:

Re:signal processing INT or TERM

2008-10-30 Thread Jeff Pang
> Message du 30/10/08 10:45 > De : "icarus" > A : beginners@perl.org > Copie à : > Objet : signal processing INT or TERM > > > perl 5.8.2 > OS: AIX fully POSIX compliant > > my script moves files from one dir to another. > When I want my script to stop, should I pass it along the signal INT > or

RE: Hi all

2008-10-30 Thread Bob McConnell
From: Anusha Krishna chand > I have to make my back button of the browser disable ... can any one > help me in doing that using perl script... > Thanks in advance > Anusha Krishnachand The quickest way to do that in most browsers is right click on the toolbar, select customize and remove

Re: matching elements from array and print the results line by line from log file

2008-10-30 Thread Brian
slow_leaner wrote: On Oct 28, 2:51 pm, [EMAIL PROTECTED] (Andy Cravens) wrote: -Original Message- From: slow_leaner [mailto:[EMAIL PROTECTED] Sent: Tue 10/28/2008 11:58 AM To: [EMAIL PROTECTED] Subject: matching elements from array and print the results line by line from log file Hi, I

beginners@perl.org

2008-10-30 Thread Brent Clark
Rob Coops wrote: What the (? Thank you so much, Regards Brent -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

beginners@perl.org

2008-10-30 Thread Stewart Anderson
> -Original Message- > From: Brent Clark [mailto:[EMAIL PROTECTED] > Sent: 30 October 2008 09:57 > To: beginners@perl.org > Subject: regex for & > > Hiya > > I have three sentences. > > This is a nice hotel. > The view & food is good. > We are at the Victoria & Alfred Hotel. > > I need

beginners@perl.org

2008-10-30 Thread Rob Coops
On Thu, Oct 30, 2008 at 10:56 AM, Brent Clark <[EMAIL PROTECTED]>wrote: > Hiya > > I have three sentences. > > This is a nice hotel. > The view & food is good. > We are at the Victoria & Alfred Hotel. > > I need a perl regex / code to not print out sentence 2 (basically fail). > > This is what I s

beginners@perl.org

2008-10-30 Thread Kammen van, Marco, Springer SBM NL
>>-Original Message- >>From: Brent Clark [mailto:[EMAIL PROTECTED] >>Sent: Thursday, October 30, 2008 10:57 AM >>To: beginners@perl.org >>Subject: regex for & >> >>Hiya >> >>I have three sentences. >> >>This is a nice hotel. >>The view & food is good. >>We are at the Victoria & Alfred Hote

Re: matching elements from array and print the results line by line from log file

2008-10-30 Thread slow_leaner
On Oct 28, 2:51 pm, [EMAIL PROTECTED] (Andy Cravens) wrote: > -Original Message- > From: slow_leaner [mailto:[EMAIL PROTECTED] > Sent: Tue 10/28/2008 11:58 AM > To: [EMAIL PROTECTED] > Subject: matching elements from array and print the results line by line from > log file > > Hi, > I have

beginners@perl.org

2008-10-30 Thread Brent Clark
Hiya I have three sentences. This is a nice hotel. The view & food is good. We are at the Victoria & Alfred Hotel. I need a perl regex / code to not print out sentence 2 (basically fail). This is what I so far. print $_ if $_ !~ /\&|Victoria \&/ig; Im struggling to get this right. TIA. Re

signal processing INT or TERM

2008-10-30 Thread icarus
perl 5.8.2 OS: AIX fully POSIX compliant my script moves files from one dir to another. When I want my script to stop, should I pass it along the signal INT or TERM? INT just interrupts the script. It finishes whatever it's processing and then it's done. TERM on the other hand, just sends a TER

Hi all

2008-10-30 Thread Anusha Krishna chand
Hi ... I have to make my back button of the browser disable ... can any one help me in doing that using perl script... Thanks in advance Anusha Krishnachand

Re: Efficient way of comparing items in an array

2008-10-30 Thread Raymond Wan
Hi Dave, Dave Tang wrote: On Thu, 30 Oct 2008 16:04:31 +1000, Dave Tang <[EMAIL PROTECTED]> wrote: I have written the following code but I wish I could think of a much better way of achieving my output. Any tips and suggestions will be greatly appreciated! Thanks in advance. Oops I mean (

RE: Reading from multiple sockets.

2008-10-30 Thread Kammen van, Marco, Springer SBM NL
>>> From: Peter Scott [mailto:[EMAIL PROTECTED] >>> Subject: Re: Reading from multiple sockets. > >> On Tue, 21 Oct 2008 12:53:53 +0200, Kammen van, Marco, Springer SBM NL >> wrote: >> I'm pretty new to working with sockets in perl, looked around for days >> for a proper solution for my IRC/DCC p