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
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 5.10. I downloaded Perl 5.10 from
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
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 file
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: The information contained in this e-mail message and/or attachments to
it may contain confidential or privileged information
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
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
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
[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
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
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
[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
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
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
ANy help much appreciated!
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
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
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
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.
Example: perl script.pl 1.txt 2.txt 3.txt
Each file has information that I am parsing to put into a report but I need
to get the
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
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
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]
-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
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
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
: 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
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
-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
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:
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
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
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 asked me to coordinate app execution on a handful
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
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
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
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
For example: I would like for the user to enter the
name of a software package to use and then call a
shell script to use that package name to upgrade
software.
Thanks
=
Jeffrey T. Collins
[EMAIL PROTECTED]
__
Do you Yahoo!?
Find out what made the Top
of course. More info may lend yourself to a better answer.
Paul
Paul Kraus
---
PEL Supply Company
Network Administrator
-Original Message-
From: Jeff Collins [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 31, 2003 11:44 AM
To: [EMAIL PROTECTED]
Subject: Perl
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
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
--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
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
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
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?
Thanks,
Ed
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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
* 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
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]
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
I have searched this topic from achive but not found yet...
I make a perl daemon script
From console, my script detach itself using Proc::Daemon::Init (use
Proc::Daemon module I installed from CPAN).
in background, my process looping forever to check some condition saved
in database.
when
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
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
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
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
--- 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
53 matches
Mail list logo