Please, I need help!!!

2009-06-12 Thread Phillip
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

Re: Beginners' books for Perl newbies using Windows?

2008-09-19 Thread Phillip Pi
> > > -- > > > > 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

Re: Beginners' books for Perl newbies using Windows?

2008-09-18 Thread Phillip Pi
> > 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). > > > >

Beginners' books for Perl newbies using Windows?

2008-09-18 Thread Phillip Pi
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

Re: Filehandle and redirection of STDOUT

2007-11-01 Thread Phillip Gonzalez
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

Filehandle and redirection of STDOUT

2007-11-01 Thread Phillip Gonzalez
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

Re: Search for IP address and delete from file

2007-10-17 Thread Phillip Gonzalez
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

Re: Search for IP address and delete from file

2007-10-17 Thread Phillip Gonzalez
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#

Search for IP address and delete from file

2007-10-17 Thread Phillip Gonzalez
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/

Re: hash of arrays

2003-09-11 Thread Phillip E. Thomas
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

hash of arrays

2003-09-11 Thread Phillip E. Thomas
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]

Compiling Question

2001-10-01 Thread Phillip B. Bruce
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

Re: beginner here - with basic cgi trouble

2001-05-09 Thread Phillip Bruce
;/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. -- ***

Using Email

2001-05-01 Thread Phillip Bruce
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

Subroutine and Functions

2001-04-30 Thread Phillip Bruce
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

Error

2001-04-27 Thread Phillip 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

CPAN Question

2001-04-26 Thread Phillip 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 *** *** [

regular expression match?

2001-04-16 Thread Prentice, Phillip R
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