Re: Ten Years of Considerate Help

2011-04-27 Thread Ted Mittelstaedt
On 4/22/2011 3:17 PM, Shlomi Fish wrote: I recall that the traffic on the list was very overwhelming and that someone commented to me that whenever he set to compose a message answering a beginner, he already got several good replies by the time he finished. The traffic now may also be a bit too

How does this work?

2011-04-27 Thread Owen
There is a person on the Internet using this to advise his email address. perl -le "print scalar reverse qq/moc.liamg\100halbhalb/" I am intrigued as to how "001\" becomes "@" What should I be reading? TIA Owen -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additiona

Re: How does this work?

2011-04-27 Thread John W. Krahn
Owen wrote: There is a person on the Internet using this to advise his email address. perl -le "print scalar reverse qq/moc.liamg\100halbhalb/" I am intrigued as to how "001\" becomes "@" "\100" is interpolated as "@" before the string is reversed. You could also write that as: perl -le

Re: Nature of this list

2011-04-27 Thread Ted Mittelstaedt
On 4/24/2011 12:38 PM, David Christensen wrote: The way I see it, "Cyberbulling" is much more persistent than just making one comment on a post to a public mailing list. Perhaps. Note that people on this list have already stated that certain people have a history of questionable conduct on th

Re: How does this work?

2011-04-27 Thread Ishwor Gurung
Hi Owen. G'day. On 27 April 2011 19:13, Owen wrote: > There is a person on the Internet using this to advise his email > address. > >   perl -le "print scalar reverse qq/moc.liamg\100halbhalb/" > > I am intrigued as to how "001\" becomes "@" Try this :-) perl -le "print scalar reverse qq/ua.gro.

Regular expression help !!

2011-04-27 Thread jet speed
Hi, Please could you advice, how can i write a regular expression for the line below to capture 0079 and 69729260057253303030373 0079 Not Visible 69729260057253303030373 i tried this one, no luck /(^\d{4})\s\w+\s\w+\s+\d+/ig) Appreciate your help with this. Sj -

Re: Regular expression help !!

2011-04-27 Thread Paolo Gianrossi
2011/4/27 jet speed > Hi, > > Please could you advice, how can i write a regular expression for the > line below to capture 0079 and 69729260057253303030373 > > > 0079 Not Visible 69729260057253303030373 > > i tried this one, no luck > > /(^\d{4})\s\w+\s\w+\s+\d+/ig) >

Re: Ten Years of Considerate Help

2011-04-27 Thread Shlomi Fish
Hi Ted, It was a thought provoking E-mail. Let me reply. On Wednesday 27 Apr 2011 11:58:48 Ted Mittelstaedt wrote: > On 4/22/2011 3:17 PM, Shlomi Fish wrote: > > I recall that the traffic on the list was very overwhelming and that > > someone commented to me that whenever he set to compose a mess

Re: Regular expression help !!

2011-04-27 Thread Shawn H Corey
On 11-04-27 06:47 AM, jet speed wrote: 0079 Not Visible 69729260057253303030373 Try this: #!/usr/bin/env perl use strict; use warnings; my $text = '0079 Not Visible 69729260057253303030373'; my @numbers = $text =~ /(\d+)/g; print "@numbers\n"; __END_

Re: Regular expression help !!

2011-04-27 Thread Jeff Pang
2011/4/27 jet speed : > Hi, > > Please could you advice, how can i write a regular expression for the > line below to capture 0079 and 69729260057253303030373 > > > 0079 Not Visible             69729260057253303030373 > This might help? $ perl -le ' $str="0079 Not Visible

Re: Nature of this list

2011-04-27 Thread Raymond Wan
Hi Jenda, 2011/4/26 Jenda Krynicky : > From: Raymond Wan >> Hm, sounds like you think that if the problem is ignored, it will go >> away? > > Some problems are real, some imaginary. The later kind is better > ignored. Yes...well, I would think whether or not it is imaginary should not be

Re: [OT] Ten Years of Considerate Help

2011-04-27 Thread Dr.Ruud
On 2011-04-27 10:58, Ted Mittelstaedt wrote: things are not so polite on this list anymore Just another example of self hypnosis. As I already suggested before: kill file all posters that post off-topic without flagging it as such, and let all '[OT]' flagged messages be marked as read, and th

RE: How does this work?

2011-04-27 Thread Tim Lewis
If needed, there is a good complete table of the ASCII values at http://www.asciitable.com/ Tim -Original Message- From: Ishwor Gurung [mailto:ishwor.gur...@gmail.com] Sent: Wednesday, April 27, 2011 5:46 AM To: Perl Beginners Subject: Re: How does this work? Hi Owen. G'day. On 27 Apri

Re: Regular expression help !!

2011-04-27 Thread Rob Dixon
On 27/04/2011 11:47, jet speed wrote: Please could you advice, how can i write a regular expression for the line below to capture 0079 and 69729260057253303030373 0079 Not Visible 69729260057253303030373 i tried this one, no luck /(^\d{4})\s\w+\s\w+\s+\d+/ig) It

Re: Regular expression help !!

2011-04-27 Thread jet speed
Hi all, Thanks for all our inputs, The regular expression below works fine if do it for single line, i am trying to caputre the match $1, and $2 into array. only the first line is pushed to the array. what am i doing wrong ? how to get all the $1 and $2 match values for each line into arrary ? Ki

Re: Regular expression help !!

2011-04-27 Thread Jim Gibson
On 4/27/11 Wed Apr 27, 2011 8:32 AM, "jet speed" scribbled: > Hi all, > > Thanks for all our inputs, > > The regular expression below works fine if do it for single line, i am > trying to caputre the match $1, and $2 into array. only the first line > is pushed to the array. what am i doing wr

Re: Regular expression help !!

2011-04-27 Thread Paul Johnson
On Wed, Apr 27, 2011 at 04:32:57PM +0100, jet speed wrote: > Hi all, > > Thanks for all our inputs, > > The regular expression below works fine if do it for single line, i am > trying to caputre the match $1, and $2 into array. only the first line > is pushed to the array. what am i doing wrong ?

Re: Regular expression help !!

2011-04-27 Thread Shawn H Corey
On 11-04-27 12:47 PM, Jim Gibson wrote: The metasymbol \d matches the characters [0-9], not the extended hexadecimal set that includes A-Z. To match those, construct your own character class: [0-9A-Z] You can use the POSIX xdigit character class instead: #!/usr/bin/env perl use strict; use w

Re: Regular expression help !!

2011-04-27 Thread Brian Fraser
On Wed, Apr 27, 2011 at 2:48 PM, Shawn H Corey wrote: > On 11-04-27 12:47 PM, Jim Gibson wrote: > >> The metasymbol \d matches the characters [0-9], not the extended >> hexadecimal >> set that includes A-Z. To match those, construct your own character class: >> >> [0-9A-Z] >> > > You can use the

Re: Regular expression help !!

2011-04-27 Thread Dr.Ruud
On 2011-04-27 18:47, Jim Gibson wrote: The metasymbol \d matches the characters [0-9], Beware: the \d matches 250+ code points. So don't use \d if you only mean [0-9]. not the extended hexadecimal set that includes A-Z. To match those, construct your own character class: [0-9A-Z] Or us

Re: Regular expression help !!

2011-04-27 Thread jet speed
Excellent Guys, I would like thank each one of you for inputs. Much appreciated. i got blinded by just the numbers 0079, i didn't cater for the next line which is hex 007A, as one of you rightly pointed out [ 0-9A-Z] , does the trick. its amazing to see different technique to achieve the same res

special method name start with "_"

2011-04-27 Thread heyi xiao
Hello all, In the source code of some bioperl modules, I saw method names start with "_". For instance, _print, in the following lines: $self->_print($buff); $self->_print("\n"); But I couldn’t find the subroutine or function definition for these methods anywhere. Are these special or internal m

Re: special method name start with "_"

2011-04-27 Thread Jeff Pang
2011/4/28 heyi xiao : > Hello all, > In the source code of some bioperl modules, I saw method names start with > "_". For instance, _print, in the following lines: > $self->_print($buff); > $self->_print("\n"); > These generally mean internal methods, but you could also call them from external pa

Re: special method name start with "_"

2011-04-27 Thread Shawn H Corey
On 11-04-27 09:16 PM, heyi xiao wrote: Hello all, In the source code of some bioperl modules, I saw method names start with "_". For instance, _print, in the following lines: $self->_print($buff); $self->_print("\n"); But I couldn’t find the subroutine or function definition for these methods

Re: How does this work?

2011-04-27 Thread Jeff Pang
2011/4/27 Tim Lewis : > If needed, there is a good complete table of the ASCII values at > http://www.asciitable.com/ > Good resource. BTW, what do "Hx" and "Oct" in the table mean? And what's the difference between them? Regards. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For ad

Re: How does this work?

2011-04-27 Thread John W. Krahn
Jeff Pang wrote: 2011/4/27 Tim Lewis: If needed, there is a good complete table of the ASCII values at http://www.asciitable.com/ Good resource. BTW, what do "Hx" and "Oct" in the table mean? And what's the difference between them? Hx = hexadecimal Oct = octal Hexadecimal is the base 16 re

Re: special method name start with "_"

2011-04-27 Thread Uri Guttman
> "SHC" == Shawn H Corey writes: SHC> On 11-04-27 09:16 PM, heyi xiao wrote: >> In the source code of some bioperl modules, I saw method names >> start with "_". For instance, _print, in the following lines: >> $self->_print($buff); >> $self->_print("\n"); >> But I couldn’t fin

Re: special method name start with "_"

2011-04-27 Thread Shawn H Corey
On 11-04-28 12:20 AM, Uri Guttman wrote: methods starting with _ are conventionally private methods. Actually, I think they are "protected" methods. Those methods that should not be access by other objects but can be by their child classes. A truly private method can be written as a sub ref

Re: special method name start with "_"

2011-04-27 Thread Uri Guttman
> "SHC" == Shawn H Corey writes: SHC> On 11-04-28 12:20 AM, Uri Guttman wrote: >> methods starting with _ are conventionally private >> methods. SHC> Actually, I think they are "protected" methods. Those methods that SHC> should not be access by other objects but can be by their c

Re: special method name start with "_"

2011-04-27 Thread Jeff Pang
2011/4/28 Uri Guttman : > > the _ prefix is the only common way to mark a private OR protected > method as perl doesn't directly provide any support for it. moose and > other OO systems may support this. I may think Perl OO (not moose) doesn't have private or protected methods as other languages

Re: special method name start with "_"

2011-04-27 Thread Uri Guttman
> "JP" == Jeff Pang writes: JP> 2011/4/28 Uri Guttman : >> >> the _ prefix is the only common way to mark a private OR protected >> method as perl doesn't directly provide any support for it. moose and >> other OO systems may support this. JP> I may think Perl OO (not moose) do

Re: special method name start with "_"

2011-04-27 Thread N
Remove me from the mailing list please On Wednesday, April 27, 2011, Jeff Pang wrote: > 2011/4/28 Uri Guttman : > >> >> the _ prefix is the only common way to mark a private OR protected >> method as perl doesn't directly provide any support for it. moose and >> other OO systems may support this.

Re: special method name start with "_"

2011-04-27 Thread Jeff Pang
2011/4/28 N : > Remove me from the mailing list please > please send an empty mail to: beginners-unsubscr...@perl.org -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/