Re: Perl Newbie question about upgrade from Perl 5.8.8 to 5.10

2009-01-16 Thread dolphin_sonar
On Jan 15, 7:39 am, telemac...@arpinum.org (Telemachus) wrote: On Wed Jan 14 2009 @  8:17, dolphin_sonar wrote: Hi, I bought the O'Reilly 5th edition Learning Perl the other day and it's great. I am new to programming and Perl as well. I do know my way around Linux but I am having

Re: Perl Newbie question about upgrade from Perl 5.8.8 to 5.10

2009-01-15 Thread Telemachus
On Wed Jan 14 2009 @ 8:17, dolphin_sonar wrote: Hi, I bought the O'Reilly 5th edition Learning Perl the other day and it's great. I am new to programming and Perl as well. I do know my way around Linux but I am having problems upgrading from the version that was on my OS (Cent OS 5.2) to

Re: perl newbie question

2005-07-26 Thread Jay Savage
On 7/25/05, FreeFall [EMAIL PROTECTED] wrote: try: perl -ne '$line=$_;END{print $line}' yourfile On Mon, 25 Jul 2005 19:09:50 +0530 [EMAIL PROTECTED] wrote: hi , I am a perl newbie. Can someone suggest a perl command line snippet that will print the last n lines of a

Re: perl newbie question

2005-07-25 Thread Edward WIJAYA
On Mon, 25 Jul 2005 21:39:50 +0800, [EMAIL PROTECTED] wrote: Can someone suggest a perl command line snippet that will print the last n lines of a file. If you are under unix/linux just use tail -n command. However if you really want to go via Perl command line: $perl -e ' open FH, file

Re: perl newbie question

2005-07-25 Thread Keith Worthington
hi , I am a perl newbie. Can someone suggest a perl command line snippet that will print the last n lines of a file. thanks in advance. regards, Kaushik Kaushik, If you are on the command line I suggest the use of the tail command. tail -n 123 filename If you must perform this

RE: perl newbie question

2005-07-25 Thread Larsen, Errin M HMMA/Information Technology Department
Edward WIJAYA wrote: On Mon, 25 Jul 2005 21:39:50 +0800, [EMAIL PROTECTED] wrote: Can someone suggest a perl command line snippet that will print the last n lines of a file. If you are under unix/linux just use tail -n command. However if you really want to go via Perl command

Re: perl newbie question

2005-07-25 Thread Matthias Ochs
[EMAIL PROTECTED] wrote: hi , I am a perl newbie. Can someone suggest a perl command line snippet that will print the last n lines of a file. Why do you want a Perl line for that? You could just use 'tail' (assuming you run some kind of UNIX). Matthias -- To unsubscribe, e-mail:

Re: perl newbie question

2005-07-25 Thread Jeff 'japhy' Pinyan
On Jul 25, [EMAIL PROTECTED] said: Can someone suggest a perl command line snippet that will print the last n lines of a file. The File::ReadBackwards module does it for you rather simply. -- Jeff japhy Pinyan % How can we ever be the sold short or RPI Acacia Brother #734 % the

RE: perl newbie question

2005-07-25 Thread Larsen, Errin M HMMA/Information Technology Department
Dave Adams wrote: Larsen, Hi Dave. My name is Errin. Larsen is my surname. Please, when posting replies, post to the list. I am afraid I cannot get your suggested code to work. Especially line that reads foreach reverse 0..$n; SNIP On 7/25/05, Larsen, Errin M HMMA/Information

Re: perl newbie question

2005-07-25 Thread John W. Krahn
[EMAIL PROTECTED] wrote: hi , Hello, I am a perl newbie. Can someone suggest a perl command line snippet that will print the last n lines of a file. perl -ne'INIT{$#x=shift()[EMAIL PROTECTED](splice(@x,1),$_)[EMAIL PROTECTED]' 4 yourfile John -- To unsubscribe, e-mail: [EMAIL

Re: perl newbie question

2005-07-25 Thread FreeFall
try: perl -ne '$line=$_;END{print $line}' yourfile On Mon, 25 Jul 2005 19:09:50 +0530 [EMAIL PROTECTED] wrote: hi , I am a perl newbie. Can someone suggest a perl command line snippet that will print the last n lines of a file. thanks in advance. regards, Kaushik Notice:

Re: Perl newbie: regexp

2004-06-17 Thread Roberto Etcheverry
This will do it: perl -n -e 'print if /Testing/m' test.txt '-p' prints every line in the file so you'll see the matching lines twice (one because of '-p' and the other because of 'print') and the non-matching lines once (because of '-p'). Look in 'perldoc perlrun' for differences on '-p' and

RE: Perl newbie: regexp

2004-06-17 Thread Bob Showalter
raj wrote: Hello All, I am new to perl. I want to display the lines which have Testing word. I have to do this in command line. I tried the with following options. Its not work what I expected. It dispalys all lines. perl -p -e 'print if /Testing/m' test.txt -p should be

Re: Perl newbie: regexp

2004-06-17 Thread raj
I am clear. Thanks for replying all. - Original Message - From: Bob Showalter [EMAIL PROTECTED] To: 'raj' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, June 17, 2004 5:48 PM Subject: RE: Perl newbie: regexp raj wrote: Hello All, I am new to perl. I want

Re: Perl Newbie Question

2004-05-18 Thread James Edward Gray II
On May 18, 2004, at 1:10 PM, Perl Mail User wrote: Hello All, I have a question, I am looking to read the name of the file that I am passing as an argument to the perl script through the while () part of the script. You're looking for the $ARGV variable. It contains the filename you need. Hope

RE: Perl Newbie Question

2004-05-18 Thread Bob Showalter
Perl Mail User wrote: Hello All, Hi. Providing a real name would be considered polite. Also, please choose a meaningful subject. I have a question, I am looking to read the name of the file that I am passing as an argument to the perl script through the while () part of the script. The

Re: Perl Newbie Question

2004-05-18 Thread Paul Johnson
On Tue, May 18, 2004 at 01:10:27PM -0500, Perl Mail User wrote: I have a question, I am looking to read the name of the file that I am passing as an argument to the perl script through the while () part of the script. $ARGV perldoc perlvar -- Paul Johnson - [EMAIL PROTECTED]

RE : Perl Newbie Question

2004-05-18 Thread Jose Nyimi
-Message d'origine- De : Perl Mail User [mailto:[EMAIL PROTECTED] Envoyé : mardi 18 mai 2004 20:10 À : [EMAIL PROTECTED] Objet : Perl Newbie Question Hello All, I have a question, I am looking to read the name of the file that I am passing as an argument to the perl script

Re: Perl Newbie

2004-03-08 Thread Wiggins d'Anconia
James Edward Gray II wrote: On Feb 28, 2004, at 1:24 PM, R. Joseph Newton wrote: Rob Dixon wrote: David Le Blanc wrote: Actually, I'd better apologise for calling RPC::p* secure, simple, or well documented, before anyone comes at me with a knife :-( You won't feel a thing. Trust me: I'm an

Re: Perl Newbie

2004-02-28 Thread WC -Sx- Jones
James Edward Gray II wrote: At the top of my To Learn When I Have Time list is POE. I'll definitely get to that before I find myself writing another server. I think that's a much better choice than working out the low-level networking mess by hand. Yes, there ya go. POE is the only future

RE: Perl Newbie

2004-02-25 Thread David le Blanc
: Perl Newbie Darren - Contractor.Westar Peterson wrote: I really need immediate help with is TCP communication between a master app and a slave app. As a base upon which to build I would like to set up a script on one box that throws a message, any message, through any port to a script

Re: Perl Newbie

2004-02-25 Thread Rob Dixon
David Le Blanc wrote: -Original Message- From: WC -Sx- Jones You should probably be castrated for that most incredibly obtuse excuse for help. Do you more about Sx's gender than I do? ;) Rob -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

RE: Perl Newbie

2004-02-25 Thread David le Blanc
-Original Message- From: Rob Dixon [mailto:[EMAIL PROTECTED] Sent: Wednesday, 25 February 2004 10:04 PM To: [EMAIL PROTECTED] Subject: Re: Perl Newbie David Le Blanc wrote: -Original Message- From: WC -Sx- Jones You should probably be castrated for that most

Re: Perl Newbie

2004-02-25 Thread Rob Dixon
David Le Blanc wrote: Actually, I'd better apologise for calling RPC::p* secure, simple, or well documented, before anyone comes at me with a knife :-( You won't feel a thing. Trust me: I'm an analyst. /R -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: Perl Newbie

2004-02-25 Thread WC -Sx- Jones
David le Blanc wrote: You should probably be castrated for that most incredibly obtuse excuse for help.. You want to get a NEWBIE performing lan sniffing and performing TCP packet decoding as a first attempt at TCP interprocess comms? That's pure nastiness! Heh, well, it's not a beginners

RE: Perl Newbie

2004-02-25 Thread David le Blanc
LOL ;-) I already apologised for the crack about RPC ... [move along, nothing to see here] -Original Message- From: WC -Sx- Jones [mailto:[EMAIL PROTECTED] Sent: Thursday, 26 February 2004 4:48 AM Cc: [EMAIL PROTECTED] Subject: Re: Perl Newbie David le Blanc wrote

RE: Perl Newbie

2004-02-24 Thread Paul Kraus
Would someone point me to source examples, or module documentation. I can pick up things quickly, but when so much is so new and unexplored, I'm afraid I really don't know where to start. Of course, I will work through the tutorial to build some general language proficiency, but I surely

Re: Perl Newbie

2004-02-24 Thread wolf blaum
On Tuesday 24 February 2004 15:49, Peterson, Darren - Contractor.Westar generously enriched virtual reality by making up this one: Hello, all. I'm as green a Perl programmer as can be. As a matter of fact, I am green in OO programming and network communications. I spent 12 years

Re: Perl Newbie

2004-02-24 Thread Rob Dixon
Darren - Contractor.Westar Peterson wrote: Hello, all. I'm as green a Perl programmer as can be. As a matter of fact, I am green in OO programming and network communications. I spent 12 years maintaining FORTRAN code on 1970's mainframe computers. I do love FORTRAN... But my boss has

Re: Perl Newbie

2004-02-24 Thread WC -Sx- Jones
Darren - Contractor.Westar Peterson wrote: I really need immediate help with is TCP communication between a master app and a slave app. As a base upon which to build I would like to set up a script on one box that throws a message, any message, through any port to a script on another box. The

RE: Perl Newbie question: How would you take keyboard input and run a shell scrip with that input?

2003-12-31 Thread Paul Kraus
I don't think you could be vaguer :) Very basic #!/usr/bin/perl # update.pl multiple options command line my @packages = @ARGV foreach (@packages){ system(packageexecutableforupdate); #with output captured My $output = `packageexecutableforupdate`; } Not tested of

RE: Perl Newbie - Need good book recommendation

2003-09-30 Thread Perry, Alan
Big advice #2. Ebay. I buy all new books and expensive books through trusted sellers for about a 50-60% savings. Make sure you can pay media rate on the shipping. $4.00. I routinely buy books for $15-20 here. I do the same thing, and would add the following sites: http://www.alibris.com

Re: Perl Newbie - Need good book recommendation

2003-09-29 Thread Dan Anderson
Big advice #2. Ebay. I buy all new books and expensive books through trusted sellers for about a 50-60% savings. Make sure you can pay media rate on the shipping. $4.00. I routinely buy books for $15-20 here. I do the same thing, and would add the following sites: http://www.alibris.com

Re: Perl Newbie - Need good book recommendation

2003-09-28 Thread David Wall
--On Saturday, September 27, 2003 8:06 PM -0400 Ed Yost [EMAIL PROTECTED] wrote: I am a complete newbie to perl and have no programming experience. Do any of you have a good recommendation on a book or resource for a beginner such as myself? A list of good Perl books is maintained at

Re: Perl Newbie - Need good book recommendation

2003-09-28 Thread Jeff Borders
Ed, Let me throw some advice your way. These are the books I highly recommend. Believe me when I say, I've bought a lot of Perl books. I probably have 10-15 right now. Learning Perl - O'Reilly Perl: The Complete Reference - Osborne Perl Developer's Dictionary - Sams Perl for System

RE: Perl Newbie - Need good book recommendation

2003-09-28 Thread TN
Ja, You can also try a safari subscription - http://safari.oreilly.org if only as a means to sample a wide assortment of technical books to see which are most worth buying in hardcopy. Over the past 15 years I've spent a small fortune on books and paid subscriptions, and there is an educational

RE: Perl Newbie - Need good book recommendation

2003-09-27 Thread TN
Hi, I recommend not buying anything. After all, perl itself including all sources are free, and they come will extensive documentation, while the sources are the ultimate reference. All you need is online and free and can be found by googling. The approach I recommend, is: read one or two

Re: Perl Newbie - Need good book recommendation

2003-09-27 Thread Marc Adler
* Ed Yost [EMAIL PROTECTED] [2003-09-27 14:29]: Hi all, I am a complete newbie to perl and have no programming experience. Do any of you have a good recommendation on a book or resource for a beginner such as myself? I'm using O'Reilly's _Learning Perl_ and it's very clear. Like you, I

Re: perl newbie

2002-06-04 Thread Hal Wigoda
Cut off the fat. Unix Sys administrator, versed in most shells, ksh, bourne, bash etc. What is the best way for me to lean perl? Phil -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: perl newbie

2002-06-04 Thread David T-G
Phil -- ...and then [EMAIL PROTECTED] said... % % Unix Sys administrator, versed in most shells, ksh, bourne, bash etc. Sounds familiar... % % What is the best way for me to lean perl? Up against a sturdy wall, preferably at an angle of 45 to 65 degrees. Meanwhile, go and get the camel

Re: perl newbie

2001-05-15 Thread Jos Boumans
there is a semicolon there. -Original Message- From: Jos Boumans [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 15, 2001 9:39 AM To: Peter Lee Cc: [EMAIL PROTECTED] Subject: Re: perl newbie A quick glance at your code shows a missing ; at the end of $refresh=$q-param('refresh') check

RE: perl newbie

2001-05-15 Thread Peter
yes, semicolon is there. -Original Message- From: Jos Boumans [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 15, 2001 9:39 AM To: Peter Lee Cc: [EMAIL PROTECTED] Subject: Re: perl newbie A quick glance at your code shows a missing ; at the end of $refresh=$q-param('refresh') check

RE: perl newbie

2001-05-15 Thread Peter
to an asp page. ie. .asp?refresh=xsymbol=. thanks, peter -Original Message- From: Jos Boumans [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 15, 2001 9:45 AM To: Peter Lee Cc: [EMAIL PROTECTED] Subject: Re: perl newbie Ok, it's hard to help you without knowing the exact error

Re: perl newbie

2001-05-15 Thread Jos Boumans
To: Peter Lee Cc: [EMAIL PROTECTED] Subject: Re: perl newbie Ok, it's hard to help you without knowing the exact error that is generated. So it would help if you posted that too furthermore, that bit of code seems to be in order then, altho the first in ..cgi?tickers=yyyrefresh=x shouldnt

RE: perl newbie

2001-05-15 Thread Paul
--- Peter [EMAIL PROTECTED] wrote: when i append the refresh=x, i get a software error: Execution of cgi aborted due to compilation errors so what are the other errors? try posting the whole code if necessary, and the whole output to the screen when you try to run it. =o) = print