Re: File sorting question

2011-08-18 Thread ERIC KRAUSE
Brandon and Jim, Thank you for the replies. They were very helpful. I have gotten past my blockage. Eric On Aug 17, 2011, at 5:22 PM, Brandon McCaig wrote: > On Wed, Aug 17, 2011 at 5:59 PM, ERIC KRAUSE wrote: >> The problem for me is the line endings I think. When I open the >>

File sorting question

2011-08-17 Thread ERIC KRAUSE
Hello all, I am beating my head against the wall, any help would be appreciated. I have a file: / // / m / cvfbcbf/ A123/ / / /// / // / m / cvfbcbf/ A234/ / / /// / // / m / cvfbcbf/ B123/ / / /// There is spaces in the b

Re: Hardware?

2011-08-05 Thread ERIC KRAUSE
SB, I'm curious why you don't think OS X and perl get along? I'm running 3 Macs and I've never had any issues. perl and cpan both run very smoothly and I haven't done any special tweaking to get it that way, it did out of the box. What type of issues are you seeing? ...and just curious, but OS X

Re: print on the same line

2009-01-04 Thread Eric Krause
Mr. Shawn H. Corey wrote: On Sun, 2009-01-04 at 19:33 -0700, bft wrote: Hello all, I am on a windows box and I am trying to have a count down timer print out the seconds remaining without new lining it. i.e. I do not want a screen that looks like this... 19 seconds remaining 18 seconds r

Re: javascript question

2008-12-31 Thread Eric Krause
Chas. Owens wrote: On Tue, Dec 30, 2008 at 18:50, bft wrote: Hi all, I am trying to interface with a work timesite server, and the site uses javascript. I am first presented with a login page (username, password) and then my current weeks timecard after successful login. My question is do y

2 questions please, one on scope and one on regex

2008-12-22 Thread Eric Krause
Hello all, I have two quick questions that I would love some help on. I have looked at the manual (Programming Perl) and I didn't get it, hence my email. Question 1 - How can I make variables in a function (subroutine) global (accessible from other functions)? Question 2 - I am trying to con

web page access tip

2007-12-09 Thread Eric Krause
All, I have seen a lot of questions on this forum for automating web page accessing, some of which I've posted myself. I just wanted to share something I found. I was using WWW::Mechanize and it worked absolutely great, but I had problems figuring out what objects were called. I viewed the pa

Re: get full month name

2007-12-08 Thread Eric Krause
I'm also a perl newbie, but couldn't you use a hash? Something like: %fullMonth = ( jan => January, feb => February, mar => March, etc...); print "Month: $fullMonth{$month}"; -eric [EMAIL PROTECTED] wrote: I'm trying to write a subroutine that r

Re: Retrieving stock data from the web

2007-12-06 Thread Eric Krause
I think WWW::Mechanize works great. Very easy to understand and use. -Eric Perl wrote: Hi All. I want to download historical stock financial data (EPS, growth, sales revenue etc.) from the web. My intention is to populate a MYSQL database with these values and then perform a series of calcu

Re: External application

2007-12-03 Thread Eric Krause
Thanks Jeff! That got me looking in the right place. Cheers, Eric Jeff Pang wrote: On 12/3/07, Eric Krause <[EMAIL PROTECTED]> wrote: Hello all, Quick question. I would like to launch an external app and pass data to it. Can someone please tell me a good place to start looki

External application

2007-12-02 Thread Eric Krause
Hello all, Quick question. I would like to launch an external app and pass data to it. Can someone please tell me a good place to start looking for information on this? Thanks, Eric -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.pe

Re: regular expression question

2007-12-02 Thread Eric Krause
idn't work. I'll check out what you suggested. Cheers, Eric Tom Phoenix wrote: On 12/1/07, Eric Krause <[EMAIL PROTECTED]> wrote: I have a string like: 1xxx1111xx11x1 I would like to replace the 1's with the total of 1's like this: 5xxx26xx2

Re: regular expression question

2007-12-02 Thread Eric Krause
$ perl -le' $_ = q[1xxx1111xx11x1]; print; s/(1+)/@{[($l=$1)=~y|1|1|]}/g; print; ' 1xxx1111xx11x1 5xxx26xx2x1 :-) John John, That worked perfectly! Thanks!!! Cheers, Eric -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-ma

regular expression question

2007-12-01 Thread Eric Krause
Hello all, I have a string like: 1xxx1111xx11x1 I would like to replace the 1's with the total of 1's like this: 5xxx26xx2x1 Can anyone please help? -Eric -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.o

Re: login and download a file from a website

2007-12-01 Thread Eric Krause
GunabalanS wrote: hai i want to login and down load a page from a web sire using perl Here's a web page that helped me figure it all out. http://www.ibm.com/developerworks/web/library/wa-perlsecure.html Cheers. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: code needed

2006-09-04 Thread Eric Krause
Check out this web page, http://www.developer.com/lang/other/article.php/3454041. It has examples that return link and tags using WWW::Mechanize, which is a subset of LWP. -Eric Hal Wigoda wrote: anyone have any code that will return the links and tags from web document downloaded using LWP

Re: Filtering question

2006-09-01 Thread Eric Krause
I think if you filter on who they're to as opposed to who they are from, you should be fine. All these emails are to "beginners@perl.org". Use that as your filter criteria. Johnson, Reginald (GTI) wrote: Hi All, I have just started to receive these mails and find them very useful. However, I

Re: Linux

2006-08-08 Thread Eric Krause
Another very good starting point is the manpage perlintro. At the console prompt, just type, "man perlintro". I thought it was a very good introduction and overview. Also, the man perltoc page is a Table of Contents for all the perl manpages. Just FYI, you can also get man pages from Google. Ju

Web page manipulation

2006-08-03 Thread Eric Krause
Hello all, I am new to perl and I am trying to write a script that will allow me to automate some tasks that I do every day on the same web pages. Can anyone give me some quick examples to get web page data and pass data back to the pages? Sorry if this question is lame, I am new, but trying