Re: Grabbing an element deep inside a nested hash

2011-08-03 Thread Marc
Jim and Rob, Thanks to both of you for your responses and for the code you supplied. That was a big help. I was able to get it to work and I've pasted my code below. > No. It is just a one-level hash. I'm glad you both pointed this out. It appears that I was over thinking i

Parsing a Text File using regex

2011-08-03 Thread Ryan Lagola
Hello, I have been scratching my head on this problem and was wondering if someone can help me out. Basically I need to take a raw list of data (a snippet of it is below my email) and create another file with the information formatted in the following format: "Date: Category: Winner." The example

Re: How to run a perl script in background on Windows?

2011-08-03 Thread Rob Dixon
On 03/08/2011 22:00, Brian F. Yulga wrote: Jose Marquez wrote: Hi there Sure I am the newbiest of all Perl newbies in this group Just have been reading some of the posts you all have sent since I subscribe to this list What I'm trying to learn these days is how I run a Perl script in backgr

Re: How to run a perl script in background on Windows?

2011-08-03 Thread Shawn H Corey
On 11-08-03 12:48 PM, Jose Marquez wrote: What I'm trying to learn these days is how I run a Perl script in background on Windows. Can anybody give a hint on it? From the GUI: open a new Command Prompt, start the program, minimize the window until its done. To do it from a Perl script, you

Re: How to run a perl script in background on Windows?

2011-08-03 Thread Sheppy R
If you are trying to run this at Startup you can set up the AutoExnt service to run a .bat that launches the .pl file. @Timothy - Sorry for the reply. On Wed, Aug 3, 2011 at 6:43 PM, timothy adigun <2teezp...@gmail.com> wrote: > Hi Jose, > If you are using ActiveState you could use wperl.exe fr

Re: How to run a perl script in background on Windows?

2011-08-03 Thread timothy adigun
Hi Jose, If you are using ActiveState you could use wperl.exe from your CLI, instead of perl.exe. Regards On Wed, Aug 3, 2011 at 10:00 PM, Brian F. Yulga wrote: > Jose Marquez wrote: > >> Hi there >> Sure I am the newbiest of all Perl newbies in this group >> Just have been reading some

Re: How to run a perl script in background on Windows?

2011-08-03 Thread Brian F. Yulga
Jose Marquez wrote: Hi there Sure I am the newbiest of all Perl newbies in this group Just have been reading some of the posts you all have sent since I subscribe to this list What I'm trying to learn these days is how I run a Perl script in background on Windows. Can anybody give

Re: Grabbing an element deep inside a nested hash

2011-08-03 Thread Rob Dixon
On 03/08/2011 20:30, Rob Dixon wrote: Because the values of the array elements are simple strings, as I explained above, you must find a way of splitting them into individual fields. The simple way would be to use the 'split' operator to divide the line at whitespace, but the presence of spaces

Re: Add line feed to line

2011-08-03 Thread Rob Dixon
On 03/08/2011 20:02, Jim Gibson wrote: On 8/3/11 Wed Aug 3, 2011 9:41 AM, "Tim Lewis" scribbled: First Microsoft decides that Hungarian Notation is no longer a standard in VB; I am still going through withdrawal from that. Now camel Case is gone? I will adapt my programming to use the under

Re: Grabbing an element deep inside a nested hash

2011-08-03 Thread Rob Dixon
On 03/08/2011 19:12, Marc wrote: > > I'm trying to sort a shopping cart basket on the item numbers. The > basket is stored in a hash. There is a hashref called > %{$main::global->{cart}} that Data::Dumper prints out like so: > > $VAR1 = { >'1' => '1 1 SL-8206

Re: Grabbing an element deep inside a nested hash

2011-08-03 Thread Jim Gibson
On 8/3/11 Wed Aug 3, 2011 11:12 AM, "Marc" scribbled: > I'm trying to sort a shopping cart basket on the item numbers. The basket is > stored in a hash. There is a hashref called %{$main::global->{cart}} that > Data::Dumper prints out like so: > > $VAR1 = { > '1' => '1 1 SL-8206

Re: Add line feed to line

2011-08-03 Thread Jim Gibson
On 8/3/11 Wed Aug 3, 2011 9:41 AM, "Tim Lewis" scribbled: > First Microsoft decides that Hungarian Notation is no longer a standard in VB; > I am still going through withdrawal from that. Now camel Case is gone? I > will adapt my programming to use the underscores. CamelCase is not gone. Per

Re: Add line feed to line

2011-08-03 Thread Shlomi Fish
On Wed, 3 Aug 2011 12:41:35 -0400 "Tim Lewis" wrote: > First Microsoft decides that Hungarian Notation is no longer a standard in > VB; I am still going through withdrawal from that. Now camel Case is gone? > I will adapt my programming to use the underscores. Thanks Shlomi. On a side > note,

Grabbing an element deep inside a nested hash

2011-08-03 Thread Marc
I'm trying to sort a shopping cart basket on the item numbers. The basket is stored in a hash. There is a hashref called %{$main::global->{cart}} that Data::Dumper prints out like so: $VAR1 = { '1' => '1 1 SL-8206 73.15

How to run a perl script in background on Windows?

2011-08-03 Thread Jose Marquez
Hi there   Sure I am the newbiest of all Perl newbies in this group   Just have been reading some of the posts you all have sent since I subscribe to this list    What I'm trying to learn these days is how I run a Perl script in background on Windows. Can anybody give a hint on it?   Appreci

RE: Add line feed to line

2011-08-03 Thread Tim Lewis
First Microsoft decides that Hungarian Notation is no longer a standard in VB; I am still going through withdrawal from that. Now camel Case is gone? I will adapt my programming to use the underscores. Thanks Shlomi. On a side note, the Perl website that you put together is fantastic. -

Re: "Right way" of doing threads in Perl?

2011-08-03 Thread Dr.Ruud
On 2011-08-03 12:16, Deyan Ginev wrote: I have heard a lot of bashing of the thread support in Perl and tried it myself with limited success. For example, some months ago I tried the standard "use threads;" and remember seeing a segfault when it reached the "join" (but everything worked well ot

how to fork mysqldump in perl cgi script

2011-08-03 Thread Agnello George
Hi I have the following cgi script that that takes input of the a remote database to dumped to a local server .$db1 is the input which is a database-name . The issue is that some of the data base is taking to long to get dumped from the remote server on to my local server and and i get a con

"Right way" of doing threads in Perl?

2011-08-03 Thread Deyan Ginev
Hi all, I have heard a lot of bashing of the thread support in Perl and tried it myself with limited success. For example, some months ago I tried the standard "use threads;" and remember seeing a segfault when it reached the "join" (but everything worked well otherwise, which gave me a mixe

Re: Spidering

2011-08-03 Thread C.DeRykus
On Aug 1, 10:51 am, rob.di...@gmx.com (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 > > If you can't wr