Hallo @ all,
i am new in this domain(perlscript) and i have a question.i have a
array,i sort it,i get the last element of the array but i want to get
the next element after this one.how can i do this?
for example:
$arr1=("6,3,8,1") --->>my last element is 1 and mark that is the last
element
> > > --
> >
> > Well, I think you should buy the book "learning Perl" which is
> > suitable for both unix users and windows users, since Perl is a
> > Cross-Platform language.
>
> Yes, the book "Learning Perl" had 5th in 2008.
> and you can download it from the here:
> www.freebookspot.net
> also
> > I am looking for a few Perl books that are good for beginners who have
> > very little or no programming skills, but use computers for software
> > quality assurance/SQA testings. The books need to be easy to understand
> > and learn based on Windows environments (2000, XP, and Vista).
> >
>
>
Hello.
I am looking for a few Perl books that are good for beginners who have
very little or no programming skills, but use computers for software
quality assurance/SQA testings. The books need to be easy to understand
and learn based on Windows environments (2000, XP, and Vista).
My two Perl
lly worked! LoL.
Thanks,
-phil
On Nov 1, 2007, at 10:17 PM, Rob Dixon wrote:
Phillip Gonzalez wrote:
Hi,
I'm trying to print stdout to a file, then switch back to the
default standard out so that it prints to the screen. This script
takes a list of ip's and does a reverse lookup on
Hi,
I'm trying to print stdout to a file, then switch back to the default
standard out so that it prints to the screen. This script takes a
list of ip's and does a reverse lookup on them, it then saves the
output to "reverse.txt".
Here's my code:
#!/usr/bin/perl
use strict;
use warning
FreeBSD, and that's actually what I ended up doing basically using
cat and grep -v.
Thanks,
On Oct 17, 2007, at 9:14 PM, yitzle wrote:
If you are on a Linux machine, it might just be easier to use the grep
command with a shell script.
FILE_NAME="./log"
TMP_FILE="./tmp"
IP_TO_REMOVE="192.16
They have all been helpful.
Thanks,
On Oct 17, 2007, at 4:40 PM, Matthew Whipple wrote:
Matthew Whipple wrote:
yitzle wrote:
Take a look at the grep function
http://perldoc.perl.org/functions/grep.html
Also of potential use is the qr// quote operator:
http://perldoc.perl.org/perlop.html#
Hi,
I'm trying to search a .txt file for matching ip addresses. I then want to
delete those ip addresses.
So far I have opened the file where the ip list is and stored it in an array.
But How do I search the array for ip's?
Here's what I have so far:
#!/usr/bin/perl
$data_file="/home/uid/
Dereferencing the array was exactly what I wanted. Thank you!
"James Edward Gray II" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> On Thursday, September 11, 2003, at 06:58 AM, Phillip E. Thomas wrote:
>
> > my %hash=();
> > my $myke
d I am looking for a more elegant way to
retrieve data, something like
($myval1, $myval2)=$hash{$mykey}; (doesnt work)
I'm sure I am missing something embarrassingly simple. Any help would be
appreciated.
Phillip
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi,
Sometime back someone mentioned to me about a config file to modify
so my
my programs would grab the right compiler that I can set. Any ideas
on this?
--
*** Phillip B. Bruce ***
*** http
;/usr/lib/sendmail';
DB<1>
The DB<1> is a prompt and by type and N means to step thru the
code watch it execute.
That may also help trouble shoot the problem further.
--
***
Hi,
Anyone with experience in having perl call up mailx and
at the same time have the body of the messages sent along
with attachment.
--
*** Phillip B. Bruce ***
*** http
Hi,
I like to know if subroutines and Function should be placed
in any particular order in perl. What is commonly practiced?
Can anyone give me some examples.
--
*** Phillip B. Bruce
)) {
my $string = $csv->string;
print $string, "\n";
} else {
my $err = $csv->error_input;
print "combine() failed on argument: ", $err, "\n";
}
#close(INFILE);
#close(OUTFILE);
--
*** Phillip B. Bruce
c but gcc instead and I have
the
CC environment variable set to gcc.
Thanks in advance for helping.
--
*** Phillip B. Bruce ***
*** http://pbbruce.home.mindspring.com ***
*** [
ad it will match the "_"
character in the middle of the string as well as the end of the string. Any
ideas or suggestions on how this can be done? Thanks in advance,
-Phillip Prentice
18 matches
Mail list logo