Re: @{$var1{$var2}}

2011-06-22 Thread Dr.Ruud
On 2011-06-22 18:44, josanabr wrote: I'm reading a program written in perl and I read this statement @{ $var1{ $var2 } } Such variable names with numbers in them are often a sign of bad code. What is the context? -- Ruud -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For addi

Re: Lock file question

2011-06-22 Thread John W. Krahn
Steven Buehler wrote: From: Jim Gibson [mailto:jimsgib...@gmail.com] On 6/22/11 Wed Jun 22, 2011 3:02 PM, "Steven Buehler" scribbled: I am trying to use a lockfile so that the script can't be run again if it is already running. The below code works fine. The problem is that if my script

RE: Lock file question

2011-06-22 Thread Steven Buehler
> -Original Message- > From: Jim Gibson [mailto:jimsgib...@gmail.com] > Sent: Wednesday, June 22, 2011 5:35 PM > To: beginners@perl.org > Subject: Re: Lock file question > > On 6/22/11 Wed Jun 22, 2011 3:02 PM, "Steven Buehler" > > scribbled: > > > I am trying to use a lockfile so tha

Re: Lock file question

2011-06-22 Thread Jim Gibson
On 6/22/11 Wed Jun 22, 2011 3:02 PM, "Steven Buehler" scribbled: > I am trying to use a lockfile so that the script can't be run again if it is > already running. The below code works fine. The problem is that if my > script runs with an argument for a config file with one person trying to ru

Lock file question

2011-06-22 Thread Steven Buehler
I am trying to use a lockfile so that the script can't be run again if it is already running. The below code works fine. The problem is that if my script runs with an argument for a config file with one person trying to run it as "script.pl first.cfg" and the second person trys to run it as "scri

matplotlib

2011-06-22 Thread Bryan R Harris
I much prefer perl to python given my recent forays into that language (python's regex is awful!), however it has an excellent plotting package that is very similar to matlab but supports things like marker alphas. It's called matplotlib, and requires scipy and numpy. PDL is the closest thing I

Re: @{$var1{$var2}}

2011-06-22 Thread Shlomi Fish
Hi John, On Wed, 22 Jun 2011 09:44:56 -0700 (PDT) josanabr wrote: > Hi, > > I'm reading a program written in perl and I read this statement > Well, assuming you are interested to learn about what @{$var1{$var2}} mean, then: 1. $var1{$var2} is the value of the %var1 hash which is keyed by $va

Re: @{$var1{$var2}}

2011-06-22 Thread Uri Guttman
> "JG" == Jim Gibson writes: JG> See 'perldoc perlref' for information about references in Perl. even better for a newbie is to read 'perldoc perlreftut' and later perllol and perldsc. leave perlref for when you have some experience with refs under your belt and want more info. uri -- U

Re: @{$var1{$var2}}

2011-06-22 Thread Jim Gibson
On 6/22/11 Wed Jun 22, 2011 9:44 AM, "josanabr" scribbled: > Hi, > > I'm reading a program written in perl and I read this statement It is best to put all of your post in the body of your message, and use the title as a description of your question. Do you have a specific question about the

Re: @{$var1{$var2}}

2011-06-22 Thread Rob Coops
On Wed, Jun 22, 2011 at 6:44 PM, josanabr wrote: > Hi, > > I'm reading a program written in perl and I read this statement > > > -- > To unsubscribe, e-mail: beginners-unsubscr...@perl.org > For additional commands, e-mail: beginners-h...@perl.org > http://learn.perl.org/ > > > Without any more i

@{$var1{$var2}}

2011-06-22 Thread josanabr
Hi, I'm reading a program written in perl and I read this statement -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/