Re: is there //= operator?

2011-08-02 Thread Feng He
Ubuntu 10.04 is Perl 5.10, which has this operator avaiable. On Wed, Aug 3, 2011 at 1:59 PM, shawn wilson wrote: > On Aug 3, 2011 12:40 AM, "Brian Fraser" wrote: >> >> On Wed, Aug 3, 2011 at 2:32 AM, terry peng wrote: >> >> > I have forgot that, is there a //= operator in Perl? >> > which shou

Re: is there //= operator?

2011-08-02 Thread shawn wilson
On Aug 3, 2011 12:40 AM, "Brian Fraser" wrote: > > On Wed, Aug 3, 2011 at 2:32 AM, terry peng wrote: > > > I have forgot that, is there a //= operator in Perl? > > which should do the same stuff as: > > > > unless (defined($foo) ) { > >$foo = ...; > > } > > > > Thanks. > > > > > Yes. > > Now

Re: is there //= operator?

2011-08-02 Thread Brian Fraser
On Wed, Aug 3, 2011 at 2:32 AM, terry peng wrote: > I have forgot that, is there a //= operator in Perl? > which should do the same stuff as: > > unless (defined($foo) ) { >$foo = ...; > } > > Thanks. > > Yes. Now wasn't that simple? : ) It's the defined-or, and you can read more about it on

is there //= operator?

2011-08-02 Thread terry peng
I have forgot that, is there a //= operator in Perl? which should do the same stuff as: unless (defined($foo) ) { $foo = ...; } Thanks.

Re: Net::SSLeay with Socket or IO::Socket::SSL

2011-08-02 Thread m...@smtp.fakessh.eu
Le mercredi 3 août 2011 02:12, Uri Guttman a écrit : > > "mfe" == ml@smtp fakessh eu writes: > > mfe> in the examples of Net::SSLeay, it shows various examples that > mfe> use low-level functions use Socket. what are the differences if > mfe> we re writing the examples with IO::Socket::S

Re: Net::SSLeay with Socket or IO::Socket::SSL

2011-08-02 Thread Uri Guttman
> "mfe" == ml@smtp fakessh eu writes: mfe> in the examples of Net::SSLeay, it shows various examples that mfe> use low-level functions use Socket. what are the differences if mfe> we re writing the examples with IO::Socket::SSL just use IO::Socket::SSL. then all the code is almost the

Re: Spidering

2011-08-02 Thread shawn wilson
On Tue, Aug 2, 2011 at 19:47, Mike McClain wrote: > On Mon, Aug 01, 2011 at 06:51:37PM +0100, Rob Dixon wrote: >> On 01/08/2011 11:03, VinoRex.E wrote: >> > >> >Hi everyone i am a  beginer for Perl can you give me a psedocode and a >> >sample code for a spider program.It will be helpful in underst

Net::SSLeay with Socket or IO::Socket::SSL

2011-08-02 Thread m...@smtp.fakessh.eu
hi folks hi guru of perl in the examples of Net::SSLeay, it shows various examples that use low-level functions use Socket. what are the differences if we re writing the examples with IO::Socket::SSL all testimonials are welcome --  http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x092164A7

Re: Spidering

2011-08-02 Thread Mike McClain
On Mon, Aug 01, 2011 at 06:51:37PM +0100, Rob Dixon wrote: > On 01/08/2011 11:03, VinoRex.E wrote: > > > >Hi everyone i am a beginer for Perl can you give me a psedocode and a > >sample code for a spider program.It will be helpful in understanding web > >interfaces.Thank you > > Since the purpose

Re: Output formatting help

2011-08-02 Thread Linux Expert
On Mon, Aug 1, 2011 at 1:54 AM, newbie01 perl wrote: > > Hi all, > > I have several *nix version of Unix and while some I can use df -h, for > some I can't. The only common thing that I can use that works for all is df > -k. > > > Below is the output when r

Re: (unintialized value in number lt (<) at) error

2011-08-02 Thread Brandon McCaig
On Tue, Aug 2, 2011 at 1:12 PM, Shlomi Fish wrote: > If you were going to get rid of the prototype (which is not a good idea - see > the above link) please don't comment-out the original line because it just > introduces clutter. Just to nitpick, the wording here is misleading. It sounds like Shl

Re: Characters

2011-08-02 Thread Shawn H Corey
On 11-08-02 01:26 PM, Brandon McCaig wrote: By then I just had to find the official documentation for the feature to satisfy my curiosity. :\ Yes, it's the bane of restful nights and many a dead cat. :) -- Just my 0.0002 million dollars worth, Shawn Confusion is the first step of unde

Re: Characters

2011-08-02 Thread Brandon McCaig
On Mon, Aug 1, 2011 at 6:29 PM, Jim Gibson wrote: > Dr. Ruud is demonstrating the little-known but documented feature of Perl > that the explicit empty regex // repeats the last, successful regex within > its scope. Thus, in Dr. Ruud's sample program, the line > >  my @result = $text =~ //g; > > i

Re: (unintialized value in number lt (<) at) error

2011-08-02 Thread Shlomi Fish
Hi Jason, I'm going to comment on your code, and hopefully point to problems in it. On Tue, 2 Aug 2011 06:02:24 -0700 (PDT) Jason Forget wrote: > Hello all, > > I am receive the unintialized value in number lt (<) at error when > running the below perl script. The error is indicated on line 3

Re: Characters

2011-08-02 Thread Rob Dixon
On 01/08/2011 23:29, Jim Gibson wrote: On 8/1/11 Mon Aug 1, 2011 11:20 AM, "Rob Dixon" scribbled: On 01/08/2011 19:00, Dr.Ruud wrote: On 2011-08-01 15:52, Shlomi Fish wrote: To convert a string to characters one can use split based on the empty regex, That should be "a pattern matching t

Re: (unintialized value in number lt (<) at) error

2011-08-02 Thread Rob Dixon
On 02/08/2011 14:02, Jason Forget wrote: > Hello all, > > I am receive the unintialized value in number lt (<) at error when > running the below perl script. The error is indicated on line 34. > The challenge I face is that this script was written by one person; > modified by another and I am tas

(unintialized value in number lt (<) at) error

2011-08-02 Thread Jason Forget
Hello all, I am receive the unintialized value in number lt (<) at error when running the below perl script. The error is indicated on line 34. The challenge I face is that this script was written by one person; modified by another and I am tasked to fix it. I am a beginner to perl scripting. F