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
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
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 this
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 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
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
Newbie question: How would you take keyboard input and run a
shell scrip with that input?
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
20 matches
Mail list logo