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 a

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)

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 >

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 > >

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: [EM

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;" > > On 7/25/05, Larsen, Errin M HMMA/Information

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 % th

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: [E

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 vi

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 oper

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, "

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 w

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 s

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 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

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] http://

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

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. Hop

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 ana

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-28 Thread James Edward Gray II
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 analyst. /R Well, this has all be

Re: Perl Newbie

2004-02-28 Thread R. Joseph Newton
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 analyst. > > /R Well, this has all been fun [and funny] reading.

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 > &

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 subje

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 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 &g

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 PR

RE: Perl Newbie

2004-02-25 Thread David le Blanc
PROTECTED] > Subject: Re: 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

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 sec

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

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 maintain

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 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 cou

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.ali

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.co

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-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 Administra

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 http://l

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

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 fre

Re: perl newbie

2002-06-04 Thread Tim Musson
Hey ppriest, My MUA believes you used Internet Mail Service (5.5.2653.19) to write the following on Tuesday, June 4, 2002 at 1:38:41 PM. pic> Unix Sys administrator, versed in most shells, ksh, bourne, bash pic> etc. pic> What is the best way for me to lean perl? Learning Perl, 3rd Edition fro

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 boo

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 tutorial

2001-06-08 Thread Chas Owens
On 08 Jun 2001 05:36:53 +, srikanth remani wrote: > Hi, >I am new to PERL. Please suggest me a perl tutorial... > > thanx > Srikanth > _ > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Boo

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

Re: perl newbie

2001-05-15 Thread Jos Boumans
al 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 that is generated. > So it would help if

RE: perl newbie

2001-05-15 Thread Peter
w which sends the value to an asp page. ie. .asp?refresh=x&symbol=. 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 witho

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

Re: perl newbie

2001-05-15 Thread Jos Boumans
ter wrote: > yes 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

Re: perl newbie

2001-05-15 Thread Jos Boumans
A quick glance at your code shows a missing ; at the end of $refresh=$q->param('refresh') check if that's not the problem first! Regards, Jos Boumans Peter wrote: > hi, > > i just started learning perl and i'm kinda stuck > > i want to pass two querystrings from an asp page to a perl sc