Re: Nature of this list

2011-04-19 Thread shawn wilson
so, i haven't seen much 'perl' discussion on this list today. and i was hoping that this thread has gone on long enough that it might make some think twice before being rude, spiteful, whatever. i'm pretty sure that we're all adults and that none of us will change. those that want to post will do s

Re: sample distribution

2011-04-19 Thread Peter Scott
On Tue, 19 Apr 2011 16:29:16 -0700, ai nguyen wrote: > A population of 20 cows, each one has age and weight (known). Device > this population into 2 group, each group has 10 cows. > > Questions: > How to pick a cow on each group so that a distribution of AGE and WEIGHT > on each group is similar.

sample distribution

2011-04-19 Thread ai nguyen
A population of 20 cows, each one has age and weight (known). Device this population into 2 group, each group has 10 cows. Questions: How to pick a cow on each group so that a distribution of AGE and WEIGHT on each group is similar. Show your strategy or/and implement it in PERL. Thanks -- To

Re: Nature of this list

2011-04-19 Thread Kristin Nielsen
Speaking as someone who uses Perl for work, but is also an academic specializing in Chaucerian studies, and who divorced a man for his belief that his flaws were his flaws and that's just who he is and the whole world should just get over themselves: There is a lot to be said for delivery. You

Re: How do I get the content-disposition of a MIME::Entity part

2011-04-19 Thread Koffie Verkeerd
On Mar 11, 9:13 am, ramprasad...@gmail.com (Ramprasad Prasad) wrote: > I have a simple code that gets all image parts of a message > > foreach my $part($entity->parts){ > next if ($part->effective_type !~ > m{image}); > > push(@images,$part); > >... > > } > > But I want to get only the inli

devices without division

2011-04-19 Thread ai nguyen
Hi there, How to write a device funciton without using a '/' operator sub device_now($a, $b){ my ($a, $b)=@; return $result; } &device_now(6,3); -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: Nature of this list

2011-04-19 Thread Raymond Wan
On Wed, Apr 20, 2011 at 01:17, Rob Dixon wrote: > On 19/04/2011 16:00, Peter Scott wrote: >> If anything is clear from that FAQ it is that the intention is to avoid >> flames on this list.  Casey and Kevin appear to have stopped monitoring >> this group some time ago, though. > I have raised the i

Re: Changing XML Tag Value in Perl

2011-04-19 Thread Rajpreet
On Apr 19, 7:56 am, je...@krynicky.cz ("Jenda Krynicky") wrote: > From:                   Rajpreet > > > Thanks for your replies. But the above message is jst a sample and the > > exact message we get is pretty huge(its a trading sysem message)... I > > do have XML Parser installed.. I was trying

Re: Nature of this list

2011-04-19 Thread Chap Harrison
On Apr 19, 2011, at 10:54 PM, Brandon McCaig wrote: > On Tue, Apr 19, 2011 at 11:38 PM, Chap Harrison > wrote: >> Then, add something to the effect that part of the purpose of >> the list is to acquaint beginners with the culture of advanced, >> professional programming; > > Is that the purpose

Re: Nature of this list

2011-04-19 Thread Brandon McCaig
On Tue, Apr 19, 2011 at 11:38 PM, Chap Harrison wrote: > Then, add something to the effect that part of the purpose of > the list is to acquaint beginners with the culture of advanced, > professional programming; Is that the purpose of this list? It's a beginner's list. I would expect the purpose

Re: Nature of this list

2011-04-19 Thread Chap Harrison
On Apr 19, 2011, at 11:17 AM, Rob Dixon wrote: > On 19/04/2011 16:00, Peter Scott wrote: >> >> If anything is clear from that FAQ it is that the intention is to avoid >> flames on this list. Casey and Kevin appear to have stopped monitoring >> this group some time ago, though. > > I have raised

Re: Nature of this list

2011-04-19 Thread Brandon McCaig
On Tue, Apr 19, 2011 at 10:33 PM, Brian F. Yulga wrote: > The first time I ventured some guesses in unknown territory, I > got struck down pretty fast.  It does kind of suck to spend > some time thinking about how things work, post an idea, and > then read a "you're completely wrong"-style, blunt

Re: Nature of this list

2011-04-19 Thread Brian F. Yulga
Randal L. Schwartz wrote: If they don't have a thick skin already, they'd better get one soon, or they'll be useless as an advanced programmer. Without thick skin, they won't be able to submit their code for review regardless of how much their ego is invested in it. I've been following th

Re: Nature of this list

2011-04-19 Thread David Christensen
On 04/19/2011 08:00 AM, Peter Scott wrote: I remember when Casey West and Kevin Meltzer started this list. Casey was very specific on-line and in person about it being a place where newcomers could ask questions without being flamed. The FAQ bears this out: ... this one at least had a good ru

Re: Nature of this list

2011-04-19 Thread Randal L. Schwartz
> "Robert" == Robert writes: Robert> Criticizing a man's omelettes is going too far!!! Dem's fighting Robert> words! :) Egg-cellent point! :-) -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 http://www.stonehenge.com/merlyn/> Smalltalk/Perl/Unix consultin

Re: Nature of this list

2011-04-19 Thread Robert
On 2011-04-19 18:01:38 -0400, Rob Dixon said: Really? So I could ridicule your code, your religion, your children, your omelettes, your business, or your fitness regime, and you wouldn't feel a twinge unless I attacked the essential essence that is Randal? Criticizing a man's omelettes is goin

Re: Nature of this list

2011-04-19 Thread Randal L. Schwartz
> "Shawn" == Shawn H Corey writes: Shawn> PS: If you don't like my comment, grow a thick skin! No offense taken. It says a lot more about you than it does about me. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 http://www.stonehenge.com/merlyn/> Smalltal

Re: Nature of this list

2011-04-19 Thread Shawn H Corey
On 11-04-19 06:25 PM, Randal L. Schwartz wrote: If they don't have a thick skin already, they'd better get one soon, or they'll be useless as an advanced programmer. That's the stupidest thing I ever heard. PS: If you don't like my comment, grow a thick skin! -- Just my 0.0002 million d

Re: Nature of this list

2011-04-19 Thread Randal L. Schwartz
> "Rob" == Rob Dixon writes: Rob> Really? So I could ridicule your code, your religion, your children, Rob> your omelettes, your business, or your fitness regime, and you wouldn't Rob> feel a twinge unless I attacked the essential essence that is Rob> Randal? Ideally, no. Now, do I have som

Re: Nature of this list

2011-04-19 Thread Rob Dixon
On 19/04/2011 21:31, Randal L. Schwartz wrote: > "Rob" == Rob Dixon writes: > > Rob> I have raised the issue of bullying with the moderators in past years. > Rob> The reaction was that, since Randal had such valuable input, it was > Rob> appropriate to let it drop. I find Randal's ideas intere

Re: Nature of this list

2011-04-19 Thread Shawn H Corey
On 11-04-19 04:31 PM, Randal L. Schwartz wrote: So, I project that same level of independence on others, and have a really hard time relating that someone would take a criticism of code as a personal attack. Some people are intimidated by the smallest of criticism. It usually can be traced ba

Re: Nature of this list

2011-04-19 Thread Randal L. Schwartz
> "Rob" == Rob Dixon writes: Rob> I have raised the issue of bullying with the moderators in past years. Rob> The reaction was that, since Randal had such valuable input, it was Rob> appropriate to let it drop. I find Randal's ideas interesting, although Rob> hardly germane or unmissable, but

Re: Dynamic replacement of the variable

2011-04-19 Thread Shlomi Fish
On Tuesday 19 Apr 2011 20:20:27 Jenda Krynicky wrote: > From: Rob Dixon > > > On 19/04/2011 12:56, Jenda Krynicky wrote: > > >>>SF> Well, you are right naturally, but there is no need to be so > > >>>SF> rude. Start your email with a greeting, continue with a > > >>>SF> compliment,

Re: Dynamic replacement of the variable

2011-04-19 Thread shawn wilson
> > and i will still reply with strong (but not rude) words about very bad > code here. newbies need to learn to not touch the stove before they get > burned. nothing is worse than a newbie who learns symrefs and string > eval and starts to use them for everything. i have seen that before and > it

Re: Dynamic replacement of the variable

2011-04-19 Thread Uri Guttman
> "JK" == Jenda Krynicky writes: JK> Let me quote again Uri's response: >> NEVER do that for such a simple problem. eval string is a last resort >> when no other technique can work well. i used one upper case word for emphasis, not rudeness. if you call that rude, you are way too sen

Re: Dynamic replacement of the variable

2011-04-19 Thread Jenda Krynicky
From: Rob Dixon > On 19/04/2011 12:56, Jenda Krynicky wrote: > >>> > >>>SF> Well, you are right naturally, but there is no need to be so > >>>SF> rude. Start your email with a greeting, continue with a > >>>SF> compliment, use soft words, etc. Otherwise, you may be scaring > >>>

Re: Nature of this list

2011-04-19 Thread Rob Dixon
On 19/04/2011 16:00, Peter Scott wrote: I remember when Casey West and Kevin Meltzer started this list. Casey was very specific on-line and in person about it being a place where newcomers could ask questions without being flamed. The FAQ bears this out: : 2.1 - What is the list for? : : A l

Re: Dynamic replacement of the variable

2011-04-19 Thread Rob Dixon
On 19/04/2011 15:27, shawn wilson wrote: On Tue, Apr 19, 2011 at 9:22 AM, Rob Dixon wrote: On 19/04/2011 12:56, Jenda Krynicky wrote: Try Alcoholics Anonymous. This is not a post-traumatic mutual support group, this is a technical mailing list! If you can't handle a terse and to the point rep

Re: Nature of this list

2011-04-19 Thread Shlomi Fish
On Tuesday 19 Apr 2011 18:00:05 Peter Scott wrote: > I remember when Casey West and Kevin Meltzer started this list. Casey > was very specific on-line and in person about it being a place where > newcomers could ask questions without being flamed. The FAQ bears this > > out: > : 2.1 - What is th

Nature of this list

2011-04-19 Thread Peter Scott
I remember when Casey West and Kevin Meltzer started this list. Casey was very specific on-line and in person about it being a place where newcomers could ask questions without being flamed. The FAQ bears this out: : 2.1 - What is the list for? : : A list for beginning Perl programmers to as

Re: Dynamic replacement of the variable

2011-04-19 Thread Alan Haggai Alavi
Hello friends in the list, I did not want to reply, however, I have now been forced to reply. On 04/19/2011 05:26 PM, Jenda Krynicky wrote: Try Alcoholics Anonymous. This is not a post-traumatic mutual support group, this is a technical mailing list! If you can't handle a terse and to the point

Re: Dynamic replacement of the variable

2011-04-19 Thread shawn wilson
On Tue, Apr 19, 2011 at 9:22 AM, Rob Dixon wrote: > On 19/04/2011 12:56, Jenda Krynicky wrote:   SF>  Well, you are right naturally, but there is no need to be so   SF>  rude. Start your email with a greeting, continue with a   SF>  compliment, use soft words, etc.  Otherwise,

Re: Dynamic replacement of the variable

2011-04-19 Thread Rob Dixon
On 19/04/2011 12:56, Jenda Krynicky wrote: SF> Well, you are right naturally, but there is no need to be so SF> rude. Start your email with a greeting, continue with a SF> compliment, use soft words, etc. Otherwise, you may be scaring SF> many people away. See some of my advice

Re: Dynamic replacement of the variable

2011-04-19 Thread Jenda Krynicky
From: Shlomi Fish > On Monday 18 Apr 2011 08:50:43 Uri Guttman wrote: > > > "SF" == Shlomi Fish writes: > > SF> Hi Uri, > > SF> thanks for all your input on this list. See below for my response. > > > > SF> On Monday 18 Apr 2011 07:56:16 Uri Guttman wrote: > > >> > "mr" == marcos

Re: Changing XML Tag Value in Perl

2011-04-19 Thread Jenda Krynicky
From: Rajpreet > Thanks for your replies. But the above message is jst a sample and the > exact message we get is pretty huge(its a trading sysem message)... I > do have XML Parser installed.. I was trying to format a sample message > using start and a default handler. I do get d

File::path the option keep_root => 1 does not seem to work

2011-04-19 Thread Agnello George
hi File::path the option keep_root => 1 does not seem to work for me use File::Path; rmtree( '/temp/auto', { verbose =>1 , keep_root => 1}); it throw me the output unlink /temp/auto/test6 unlink /temp/auto/test5 unlink /temp/auto/test4 rmdir /temp/auto the option keep_root => 1 should

Re: unable to print loader image properly until the backend process finishes.

2011-04-19 Thread Agnello George
>>   my @all_svn; >> #my $WW =  '  http://192.168.1.25/template/ajax-loader.gif"; />';   ###   cant sem to >> make this work!! > > What are you trying to do here. i am trying to display a loader image, until the page finishes loading, i think this is bet done with Javascript ..will stick to that .

Re: unable to print loader image properly until the backend process finishes.

2011-04-19 Thread Shlomi Fish
Hi Agnello, a few more comments on your code: On Monday 18 Apr 2011 18:31:30 Agnello George wrote: > On Mon, Apr 18, 2011 at 6:17 PM, Shlomi Fish wrote: > > Hi Agnello, > > > > some comments on your code. > > > > On Monday 18 Apr 2011 15:18:22 Agnello George wrote: > > > Hi > > > > > > I am t

Re: any perl module where i could call a svn export function.

2011-04-19 Thread Rob Dixon
On 19/04/2011 06:58, Agnello George wrote: Would just like to know if there is any perl module where i could call a svn export function. Why not take a look yourself! As per my reply to your previous post, SVN::Client does what you want

Re: unable to print loader image properly until the backend process finishes.

2011-04-19 Thread Shlomi Fish
Hi Agnello, On Tuesday 19 Apr 2011 08:03:19 Agnello George wrote: > On Mon, Apr 18, 2011 at 6:17 PM, Shlomi Fish wrote: > > > s/\s+$// for @all_svn; > > > > Subversion has Application Programmers Interfaces (APIs) for that, so you > > don't need to parse its output non-reliably. > > what do y

Re: unable to print loader image properly until the backend process finishes.

2011-04-19 Thread Rob Dixon
On 19/04/2011 06:03, Agnello George wrote: On Mon, Apr 18, 2011 at 6:17 PM, Shlomi Fish wrote: Subversion has Application Programmers Interfaces (APIs) for that, so you don't need to parse its output non-reliably. what do you mean by api for subversion , do you mean perl svn module that i