Re: How can I do this in Perl?

2011-04-03 Thread Wernher Eksteen
Hi, Thank you for showing me a better way to run the while loops, not using the foreach loop, but the for loop and some extra regex ways to accomplish things. Otherwise it prints out exactly what I had before :-) I have attached my request in a text file this time, to make it more readable

Re: How can I do this in Perl?

2011-04-03 Thread John W. Krahn
Wernher Eksteen wrote: Thank you for correcting and showing me a better different way to do the while loops, but instead of the two for loops printing the following out: emcpowera sdbd sddg sdfj sdhm # - [1st for loop output] emcpoweraa sdae sdch sdek sdgn # These the available

Re: How can I do this in Perl?

2011-04-02 Thread Wernher Eksteen
Hi, The Perl script (shown further down below) gives me the following output (without the comments). Please note that this is not the complete output, I only show the necessary detail for sake of clarity. emcpowerasdbd sddg sdfj sdhm # - [1st foreach loop output] emcpoweraa

Re: How can I do this in Perl?

2011-04-02 Thread John W. Krahn
Wernher Eksteen wrote: Hi, Hello, The Perl script (shown further down below) gives me the following output (without the comments). Please note that this is not the complete output, I only show the necessary detail for sake of clarity. emcpowerasdbd sddg sdfj sdhm #- [1st

How can I do this in Perl?

2011-04-01 Thread Wernher Eksteen
Hi, From the folowing list is a result of the @power array, when run through the foreach loop: Pseudo name=emcpowerd 1 lpfc sdba SP A7 active alive 0 0 1 lpfc sddd SP B7 active alive 0 0 3 lpfc

Re: How can I do this in Perl?

2011-04-01 Thread Uri Guttman
WE == Wernher Eksteen crypt...@gmail.com writes: WE Pseudo name=emcpowerd WE 1 lpfc sdba SP A7 active alive 0 0 WE 1 lpfc sddd SP B7 active alive 0 0 WE 3 lpfc sdfg SP B6

Re: How can I do this in Perl?

2011-04-01 Thread Rob Dixon
On 01/04/2011 19:52, Wernher Eksteen wrote: From the folowing list is a result of the @power array, when run through the foreach loop: Pseudo name=emcpowerd 1 lpfc sdba SP A7 active alive 0 0 1 lpfc sddd SP B7 active

Re: How can I do this in Perl?

2011-04-01 Thread Wernher Eksteen
Please always 'use strict' and 'use warnings', and consequently declare all of your variables. That way most straightforward problems will be solved my Perl before ever reaching his list. Thanks, I will remember to do so for future. It is better to open a pipe to a child process running your

Re: How can I do this in Perl?

2011-04-01 Thread Wernher Eksteen
that * isn't doing what you think it does. perl regexes are not shell globs. it happens to work anyway since the tokens are unique enough. read perlretut to learn perl regexes. what have you tried so far? you know enough perl to get the array of lines and loop over that. in english (or your

RE: can i do it with perl ?

2004-01-28 Thread Dan Muey
of the system all the information and transaction that were made by that user are then updated to the database server. Can i do it with perl ?, which modules ?, thanks. Yes you can. Look at cpan for DBI (for database stuff) CGI (for handling form input) HTH Dmuey -- To unsubscribe, e-mail

Re: can i do it with perl ?

2004-01-24 Thread Dan Anderson
On Fri, 2004-01-23 at 20:49, John McKown wrote: On Fri, 23 Jan 2004, Dan Anderson wrote: Give me a little bit of time with a soldering iron, some wire, and a laptop connected to your home network and your dishwasher and that can be rectified. :-D -Dan I don't think that the

Re: can i do it with perl ?

2004-01-24 Thread drieux
On Jan 24, 2004, at 12:48 PM, Dan Anderson wrote: On Fri, 2004-01-23 at 20:49, John McKown wrote: On Fri, 23 Jan 2004, Dan Anderson wrote: Give me a little bit of time with a soldering iron, some wire, and a laptop connected to your home network and your dishwasher and that can be rectified. :-D

can i do it with perl ?

2004-01-23 Thread Joe Echavarria
all the information and transaction that were made by that user are then updated to the database server. Can i do it with perl ?, which modules ?, thanks. __ Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! http://webhosting.yahoo.com/ps/sb

RE: can i do it with perl ?

2004-01-23 Thread Bob Showalter
the user logs out of the system all the information and transaction that were made by that user are then updated to the database server. Why does it need to work that way? Can i do it with perl ?, Sure. which modules ?, thanks. Too soon to say. -- To unsubscribe, e-mail: [EMAIL PROTECTED

Re: can i do it with perl ?

2004-01-23 Thread wolf blaum
of the system all the information and transaction that were made by that user are then updated to the database server. Can i do it with perl ?, which modules ?, thanks. Why does it have to be a web application? Or rather just a client/server thing? What Database? I didnt find a way to do the dishes

Re: can i do it with perl ?

2004-01-23 Thread Daniel Staal
--As off Saturday, January 24, 2004 12:07 AM +0100, wolf blaum is alleged to have said: I didnt find a way to do the dishes yet, anything else I ever tried works in perl. --As for the rest, it is mine. I'm sure you could do something with LEGO::RCX and a Mindstorms kit... ;-) Daniel T. Staal

Re: can i do it with perl ?

2004-01-23 Thread Dan Anderson
locally. After that, when the user logs out of the system all the information and transaction that were made by that user are then updated to the database server. Can i do it with perl ?, which modules ?, thanks. Why does it have to be a web application? Or rather just a client

Re: can i do it with perl ?

2004-01-23 Thread wolf blaum
Give me a little bit of time with a soldering iron, some wire, and a laptop connected to your home network and your dishwasher and that can be rectified. :-D I new that was a gentle list! I just dont have a dishwasher :( But given the traffic here I happily dont get much time to use dishes at

Re: can i do it with perl ?

2004-01-23 Thread John McKown
. After that, when the user logs out of the system all the information and transaction that were made by that user are then updated to the database server. Can i do it with perl ?, which modules ?, thanks. Unless this is an in house application for internal business use, I'd suggest

Re: can i do it with perl ?

2004-01-23 Thread John McKown
On Fri, 23 Jan 2004, Dan Anderson wrote: Give me a little bit of time with a soldering iron, some wire, and a laptop connected to your home network and your dishwasher and that can be rectified. :-D -Dan I don't think that the lady who comes in and does my dishes is going to let you

Can I do this with perl?

2002-03-04 Thread Dave Adams
Hi there, I have a problem which I would like to use perl to resolve, however I'm not sure if it is possible to do. I need to scan a file and check some conditions, first if field 9 is duplicated on 1 or more rows, then I need to check field 10 to see which is the greater value and then only

Re: Can I do this with perl?

2002-03-04 Thread Jon Molin
Dave Adams wrote: Hi there, I have a problem which I would like to use perl to resolve, however I'm not sure if it is possible to do. I need to scan a file and check some conditions, first if field 9 is duplicated on 1 or more rows, then I need to check field 10 to see which is the

RE: Can I do this with perl?

2002-03-04 Thread Nikola Janceski
Yes you can do it with perl, and I suggest using hashes. open(FILE, $file); my %seen; while(FILE){ my ($item9, $item10) = (split /\|/, $_)[8,9]; if(exists $seen{$item9}){ if($itme10 $seen{$item9}){ # the new $item10 is larger than the last

Re: Can I do this with perl?

2002-03-04 Thread Brett W. McCoy
On Mon, 4 Mar 2002, Dave Adams wrote: I have a problem which I would like to use perl to resolve, however I'm not sure if it is possible to do. I need to scan a file and check some conditions, first if field 9 is duplicated on 1 or more rows, then I need to check field 10 to see which is

RE: Can I do this with perl?

2002-03-04 Thread Chas Owens
A quick dissection of what is going on here: On Mon, 2002-03-04 at 10:20, Nikola Janceski wrote: Yes you can do it with perl, and I suggest using hashes. open(FILE, $file); This opens a file and associates it with FILE; you really should say something like 'or die Could not open $file

Re: Can I do this with perl?

2002-03-04 Thread Chas Owens
On Mon, 2002-03-04 at 10:32, Brett W. McCoy wrote: On Mon, 4 Mar 2002, Dave Adams wrote: I have a problem which I would like to use perl to resolve, however I'm not sure if it is possible to do. I need to scan a file and check some conditions, first if field 9 is duplicated on 1 or

Re: Can I do this with perl?

2002-03-04 Thread Jenda Krynicky
From: Chas Owens [EMAIL PROTECTED] On Mon, 2002-03-04 at 10:32, Brett W. McCoy wrote: On Mon, 4 Mar 2002, Dave Adams wrote: I have a problem which I would like to use perl to resolve, however I'm not sure if it is possible to do. I need to scan a file and check some conditions,