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
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)
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
>
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
>
>
[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
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
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
[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
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
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
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, "
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
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
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 '-
> -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
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://
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
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
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
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
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
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.
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:
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
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: [
> -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
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
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
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
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
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
> 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
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
>> 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
> 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
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
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
--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
* 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
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
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
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
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]
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
--- 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
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
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
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
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
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
50 matches
Mail list logo