Re: sorting thoughts

2003-01-30 Thread Janek Schleicher
On Wed, 29 Jan 2003 16:50:03 +, Steven Massey wrote: > I have an array, each line contains fields seperated by ":" > I want to sort the array numerically ascending by the last field. > > my thoughts are to split fields into seperate arrays, go through the last > array in a comparing process,

Re: system call

2003-01-30 Thread km
Hi, pls try perldoc Shell at the command prompt KM On 30 Jan 2003, simran wrote: > not sure what you mean... but try: > > perldoc perlsec > > as a starting point... > > > On Thu, 2003-01-30 at 12:38, jdavis wrote: > > hel

RE: A very annoying regex question.

2003-01-30 Thread Michael Hooten
> my @a = map {split (/\s*=\s*/, $_, 2)} split(/\r?\n/, ); Should not \s+ match \r?\n? Apparently not. > Sometimes it's better to do one thing at a time :-) Correct. Simplicity is a virtue. I was just curious because I know this could be done. > Jenda > P.S.: Are you sure you do not want to >

RE: Help installing Perl and Perl Modules on Mac OS X

2003-01-30 Thread David Brookes
> Sometimes the author knows what they are talking about ;-)... Actually, if you read the article, he says both are ok and one may choose either. > Why? What was the output and what errors were listed? If you can give a better >explanation of "did not install properly" then someone here may

Re: HTML::TokeParser and  

2003-01-30 Thread David Eason
I suppose   is a browser directive, but TokeParser returns an actual character. Will research HTML::Entities' relationship to HTML::TokeParser later...probably much later, because now it's working. Dave -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTE

Re: sorting thoughts

2003-01-30 Thread Steven_Massey
Thanks to all that offered help - much appreciated .. examples work ..more for me to learn... Rob If you could explain how this works, especially how $a $b are set with the compare values my @sorted = sort { (split ':', $a)[-1] <=> (split ':', $b)[-1] } @array; Thanks

Re: still needing help

2003-01-30 Thread Todd W
"Jdavis" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > i have not been following this thread...but it appears as if you just > want a generic cgi scrip to work...I like to use &ReadParse for > most of my easy cgi interactions ...heer is a example.. > Do no

Re: Help installing Perl and Perl Modules on Mac OS X

2003-01-30 Thread David Brookes
Hi again. One suggestion was to use CPAN to install the modules. Does anyone have any experience doing this on a Mac? I tried to do this and when you log on for the first time, you have to answer a whole bunch of questions. CPAN could not find certain programs it wanted (like ncftp) and I s

TimeStamp compare

2003-01-30 Thread alima
Hi there mates, I would like to Know If anyone of you have already tried to get the time and date a file was created from the OS. For example imagine I have a *.java file and I would like to compare the *.class file date of creation with the date of edition of the *.java file in other to mak

Weekly list FAQ posting

2003-01-30 Thread casey
NAME beginners-faq - FAQ for the beginners mailing list 1 - Administriva 1.1 - I'm not subscribed - how do I subscribe? Send mail to <[EMAIL PROTECTED]> You can also specify your subscription email address by sending email to (assuming [EMAIL PROTECTED] is your email address):

Re: Help installing Perl and Perl Modules on Mac OS X

2003-01-30 Thread wiggins
On Thu, 30 Jan 2003 07:53:53 -0500, David Brookes <[EMAIL PROTECTED]> wrote: > Hi again. > > One suggestion was to use CPAN to install the modules. Does anyone > have any experience doing this on a Mac? I tried to do this and when > you log on

RE: TimeStamp compare

2003-01-30 Thread wiggins
On Thu, 30 Jan 2003 07:59:11 -0500, [EMAIL PROTECTED] wrote: > Hi there mates, > >I would like to Know If anyone of you have already tried to get the time and > date a file was created from the OS. For example imagine I have a *.java file >

What is the and operator in perl

2003-01-30 Thread dkumar
If I want to do something like if ($a=$b) and ($d=$e) Is it possible? because & is for bitwise AND operation. Thanks -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Perl OO - Dynamic method call

2003-01-30 Thread NYIMI Jose (BMB)
This is a little bit Out of Topic but if somebody can give input I will greatly appreciate! I know that in Perl OO the name of a method can be a variable. Which end up with code like this: my $obj= new MyClass; #here the thing $obj->$method(); $method var holding the name of my method. I would

RE: What is the and operator in perl

2003-01-30 Thread Nigel Peck - MIS Web Design
you can use "and" or "&&". if (($a==$b) && ($d==$e)) { # code here } and has a lower precedence than &&. For or there's "or" or "||" HTH Nigel MIS Web Design http://www.miswebdesign.com/ > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: 30 Janu

Re: What is the and operator in perl

2003-01-30 Thread Jenda Krynicky
From: [EMAIL PROTECTED] > If I want to do something like > > if ($a=$b) and ($d=$e) > Is it possible? > > because & is for bitwise AND operation. if ($a==$b and $d==$e) or if (($a==$b) && ($d==$e)) Please note that I'm using ==. == is numerical

RE: What is the and operator in perl

2003-01-30 Thread Kipp, James
&& or and both work perldoc perlop > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Thursday, January 30, 2003 8:55 AM > To: [EMAIL PROTECTED] > Subject: What is the and operator in perl > > > If I want to do something like > > if ($a=$b) and ($

Re: Perl OO - Dynamic method call

2003-01-30 Thread Jenda Krynicky
From: "NYIMI Jose (BMB)" <[EMAIL PROTECTED]> > This is a little bit Out of Topic but if somebody can give input I > will greatly appreciate! > > I know that in Perl OO the name of a method can be a variable. > Which end up with code like this: > > my $obj= new MyClass; > #here the thing > $obj->$

Re: sorting thoughts

2003-01-30 Thread Rob Dixon
"Steven Massey" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] m... > > If you could explain how this works, especially how $a $b are set with the > compare values > > my @sorted = sort { > (split ':', $a)[-1] <=> (split ':', $b)[-1] > } @array; The block is evaluated for

RE: TimeStamp compare

2003-01-30 Thread wiggins
On Thu, 30 Jan 2003 08:49:00 -0500, [EMAIL PROTECTED] wrote: > Ok , I see what you mean but How Can I compare the dates once They aren´t > numeric? > Remember to group reply so the list can help/benefit as well. Not sure what you mean? If you

RE: Perl OO - Dynamic method call

2003-01-30 Thread NYIMI Jose (BMB)
> -Original Message- > From: Jenda Krynicky [mailto:[EMAIL PROTECTED]] > Sent: Thursday, January 30, 2003 3:12 PM > To: [EMAIL PROTECTED] > Subject: Re: Perl OO - Dynamic method call > > > From: "NYIMI Jose (BMB)" <[EMAIL PROTECTED]> > > This is a little bit Out of Topic but if somebody

Data Structure

2003-01-30 Thread Paul Kraus
As a project I have to generate an excel file based on the output of a text file. I need to generate an excel file that is going to have a separate sheet for each vendor. Then that sheet would be divided into 4 sections one for each year. The excel part I can do. The problem is I can figure out wha

Re: TimeStamp compare

2003-01-30 Thread John Baker
On Thu, 30 Jan 2003 [EMAIL PROTECTED] wrote: > Date: Thu, 30 Jan 2003 07:59:11 -0500 > From: [EMAIL PROTECTED] > To: [EMAIL PROTECTED] > Subject: TimeStamp compare > > Hi there mates, > >I would like to Know If anyone of you have already tried to get the time and > date a file was created f

System() function in 5.8

2003-01-30 Thread Ravinder Chauhan
After installing Perl 5.8 my @files = system("dir bex*.* /od /b") function has started behaving strange. Under 5.6 this function used to return the list of files for matching files, however now in place of file list it is returning a number "65280". I would appreciate if someone could help me in th

RE: TimeStamp compare

2003-01-30 Thread Bob Showalter
[EMAIL PROTECTED] wrote: > Hi there mates, > >I would like to Know If anyone of you have already tried to get > the time and date a file was created from the OS. The stat() function will do that. But read on... > For example imagine > I have a *.java file and I would like to compare the *.c

Re: TimeStamp compare

2003-01-30 Thread wiggins
On Thu, 30 Jan 2003 09:34:12 -0500 (EST), John Baker <[EMAIL PROTECTED]> wrote: > #-- This module is a must-have: > use Date::Manip; > > # Get properly formatted modify time of file from epoch > my $fmodtime = (stat($fh))[9]; > my

get pixel color from image using X,Y

2003-01-30 Thread Alex
hi all, I'd like to get color using coordinates. it's better like "FF" and image format doesn't matter -- Alex mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: TimeStamp compare

2003-01-30 Thread John Baker
On Thu, 30 Jan 2003, Bob Showalter wrote: > If you just want to compare two files to see if one is newer, use the -M > operator: > >$need_recompile = 1 if -M 'foo.java' < -M 'foo.class'; > > -M gives you the age in days of a file, measured from the time your script > was started (stored in the

Re: Help installing Perl and Perl Modules on Mac OS X

2003-01-30 Thread Chris
On Wednesday, January 29, 2003, at 01:25 PM, David Brookes wrote: Sometimes the author knows what they are talking about ;-)... Actually, if you read the article, he says both are ok and one may choose either. Trying to make a mod_perl with 5.8 was too much for me to get working, and then you

RE: Data Structure

2003-01-30 Thread Kipp, James
>The problem is I can > figure out > what data structure to build. It would need to contain the year, the > item code description sales and qty I thought I would name the > structures after the vendor. So all BAUE00 would be in one structure. > > I am just learning how to build anything beyond a

Compound if statement.

2003-01-30 Thread Duane Koble
I am working on a program that requires that three statement be true in order to set a hash. The problem I am having is getting the if statement to work correctly. I seems to me that if two of the statements are true it proceeds through the if statement. I need all three to be true before it

RE: Data Structure

2003-01-30 Thread Paul Kraus
Perfect thanks! -Original Message- From: Kipp, James [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 30, 2003 10:28 AM To: '[EMAIL PROTECTED]'; Perl Subject: RE: Data Structure >The problem is I can > figure out > what data structure to build. It would need to contain the year, the >

taking lines from a file

2003-01-30 Thread Marcelo
Hi everybody... How I can take lines from a file like this ... line1=A line2 line3 line1=B line2 line3 line1=A line2 line3 I want to take the followin 2 lines to the line1 when line1=A and write them to another file Thanks... -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional c

Re: Compound if statement.

2003-01-30 Thread Christopher D. Lewis
On Thursday, January 30, 2003, at 09:33 AM, Duane Koble wrote: I am working on a program that requires that three statement be true in order to set a hash. The problem I am having is getting the if statement to work correctly. I seems to me that if two of the statements are true it proceeds

RE: Compound if statement.

2003-01-30 Thread Le Blanc, Kerry (Kerry)
You would most likely get better results if you tried a While loop instead of an if else block. Would be a bit easier to set up as well. IMHO Kerry LeBlanc Materials Auditor Process Owner 75 Perseverence Way Hyannis, MA. 02601 1-508-862-3082 http://www.vsf.cape.com/~bismark -Origina

Re: TimeStamp compare

2003-01-30 Thread alima
Ok mate and where can I download that module? Quoting John Baker <[EMAIL PROTECTED]>: > > > > On Thu, 30 Jan 2003 [EMAIL PROTECTED] wrote: > > > Date: Thu, 30 Jan 2003 07:59:11 -0500 > > From: [EMAIL PROTECTED] > > To: [EMAIL PROTECTED] > > Subject: TimeStamp compare > > > > Hi there mates, >

Re: TimeStamp compare

2003-01-30 Thread John Baker
On Thu, 30 Jan 2003 [EMAIL PROTECTED] wrote: > Date: Thu, 30 Jan 2003 10:49:27 -0500 > From: [EMAIL PROTECTED] > To: John Baker <[EMAIL PROTECTED]> > Cc: [EMAIL PROTECTED] > Subject: Re: TimeStamp compare > > Ok mate and where can I download that module? > http://search.cpan.org/author/SBECK/Da

RE: A very annoying regex question.

2003-01-30 Thread Zeus Odin
No, regex is not a requirement. I was originally trying to test on a difficult example something I read in Programming Perl--Chap 5.7.2 Clustering, p 185: - In the remainder of the chapter, we'll see many more regex extensions, all of which cluster without capturing, as wel

Re: Help installing Perl and Perl Modules on Mac OS X

2003-01-30 Thread wiggins
Please be sure to always group reply. On Thu, 30 Jan 2003 09:12:15 -0600, Eduardo Cancino <[EMAIL PROTECTED]> wrote: > As I recall installing Perl Modules in Mac 10.2.3, using de CPAN module > that comes with perl (5.8.0, source, I think with the

RE: get pixel color from image using X,Y

2003-01-30 Thread wiggins
On Thu, 30 Jan 2003 18:05:26 +0300, Alex <[EMAIL PROTECTED]> wrote: > hi all, > > I'd like to get color using coordinates. > it's better like "FF" and image format doesn't matter > I am not a graphics expert so don't know if there is a way t

Re: Compound if statement.

2003-01-30 Thread Rob Dixon
Duane Koble wrote: > I am working on a program that requires that three statement be true > in order to set a hash. The problem I am having is getting the if > statement to work correctly. I seems to me that if two of the > statements are true it proceeds through the if statement. I need all > t

Re: taking lines from a file

2003-01-30 Thread Rob Dixon
Marcelo wrote: > Hi everybody... > How I can take lines from a file like this ... > > line1=A > line2 > line3 > > line1=B > line2 > line3 > > line1=A > line2 > line3 > > I want to take the followin 2 lines to the line1 when line1=A and > write them to another file I'm not clear exactly what yo

Problem with Getopt::Std

2003-01-30 Thread Pedro Antonio Reche
Hi all, I using the code below that uses the Getopt::Std to process the arguments from the command line (init subroutine). However, for some reason I do not get the arguments from the switches. If anyone sees what is the mistake I will be happy to hear about it. #!/usr/sbin/perl -w use Getopt::

Re: Help installing Perl and Perl Modules on Mac OS X

2003-01-30 Thread David Brookes
> Trying to make a mod_perl with 5.8 was too much for me to get working, > and then your Apple-included modules don't work because 5.8's stuff > isn't binary compatible with 5.6.0 ... the author knew what he was > talking about. OTOH, I also installed over the default position ... Yes, I see. Y

Re: taking lines from a file

2003-01-30 Thread John Baker
On Thu, 30 Jan 2003, Rob Dixon wrote: > Date: Thu, 30 Jan 2003 16:40:13 - > From: Rob Dixon <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Subject: Re: taking lines from a file > > Marcelo wrote: > > Hi everybody... > > How I can take lines from a file like this ... > > > > line1=A > > line2 >

RE: Problem with Getopt::Std

2003-01-30 Thread Bob Showalter
Pedro Antonio Reche wrote: > Hi all, I using the code below that uses the Getopt::Std to process > the arguments from the command line (init subroutine). However, for > some reason I do not get the arguments from the switches. > ... > getopts('pab'); If the options take arguments, you need

problem with bioperl

2003-01-30 Thread Prachi Shah
Hi Everyone! Is anyone familiar with Bio::Perl? I just started using it and my first little 'Hello world' quality script failed with the following error: Can't locate object method "new" via package "Bio::DB::Query::GenBank" (perhaps you forgot to load "Bio::DB::Query::GenBank"?) at C:\tryBioP

Sorting Help!!!

2003-01-30 Thread kevin r
Hello, I am having problems with the sort routine. I am writing a script that parses very large firewall logs. At one point during the script I end up with a very large array containing all of the destination udp and tcp port numbers. This array can be up being over 100,000 entries. I am tr

RE: Sorting Help!!!

2003-01-30 Thread Beau E. Cox
Hi - > -Original Message- > From: kevin r [mailto:[EMAIL PROTECTED]] > Sent: Thursday, January 30, 2003 8:06 AM > To: [EMAIL PROTECTED] > Subject: Sorting Help!!! > > > Hello, > > I am having problems with the sort routine. I am writing a script that > parses very large firewall logs. At

RE: problem with bioperl

2003-01-30 Thread wiggins
On Thu, 30 Jan 2003 12:45:13 -0500, "Prachi Shah" <[EMAIL PROTECTED]> wrote: > > Hi Everyone! > > Is anyone familiar with Bio::Perl? I just started using it and my first > little 'Hello world' quality script failed with the following error: > >

FW: Perl OO - Dynamic method call

2003-01-30 Thread NYIMI Jose (BMB)
Below, an input I have got from dbi-users forum. José. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 30, 2003 5:39 PM To: NYIMI Jose (BMB); [EMAIL PROTECTED] Subject: RE: Perl OO - Dynamic method call IMHO: This is not bad design, is usi

still needing help

2003-01-30 Thread Ron Geringer
JD: Thanks - really appreciate the help. Some of this looks like I can maybe translate it. Couple of questions though. I set up an html doc (see below) and took input called email and ip and posted it to the name of the cgi form (testxx.pl). I also changed your email address to mine (just cut and

Re: Sorting Help!!!

2003-01-30 Thread Rob Dixon
Kevin R wrote: > Hello, > > I am having problems with the sort routine. I am writing a script > that parses very large firewall logs. At one point during the script > I end up with a very large array containing all of the destination > udp and tcp port numbers. This array can be up being over 10

RE: Perl OO - Dynamic method call

2003-01-30 Thread NYIMI Jose (BMB)
Just find out that Java provides something similar but not simple (for me :) ) For those who are interested: http://java.sun.com/j2se/1.3/docs/guide/reflection/proxy.html Ok, I stop bothering you all those Java stuff, sorry ;) José. > -Original Message- > From: NYIMI Jose (BMB) > Sent:

Re: Sorting Help!!!

2003-01-30 Thread kevin r
Rob, I believe that you are correct in that there is an alternative answer. Without posting a long script, here is the premise: while logfile { if (certain conditions are met) push @portArray, $_ ## pushes certain elements of the $_ into array, protocol and port number The array will look li

RE: Sorting Help!!!

2003-01-30 Thread Wagner, David --- Senior Programmer Analyst --- WGO
kevin r wrote: > Rob, > > I believe that you are correct in that there is an alternative answer. > Without posting a long script, here is the premise: > > while logfile { > if (certain conditions are met) > push @portArray, $_ ## pushes certain elements of the $_ into array, > protocol and port

RE: Sorting Help!!!

2003-01-30 Thread Bob Showalter
kevin r wrote: > Rob, > > I believe that you are correct in that there is an > alternative answer. > Without posting a long script, here is the premise: > > while logfile { > if (certain conditions are met) > push @portArray, $_ ## pushes certain elements of the $_ into array, > protocol and por

RE: Need help

2003-01-30 Thread Ron Geringer
Hi: I got the information - but I'm confused about the ppm stuff. It appears to set a path variable (ppm?) and then to redirect the variable to "install MAIL::sendmail". However, if I run it like that it errors out all over the place. Could you give me a little direction on how to place it in the

RE: Sorting Help!!!

2003-01-30 Thread kevin r
You guys are the best. It now works, and fast too. Thank you. Kevin From: Bob Showalter <[EMAIL PROTECTED]> To: 'kevin r' <[EMAIL PROTECTED]>, [EMAIL PROTECTED] Subject: RE: Sorting Help!!! Date: Thu, 30 Jan 2003 14:20:09 -0500 kevin r wrote: > Rob, > > I believe that you are correct in that

Re: still needing help

2003-01-30 Thread jdavis
whatever it gets text where it needs to go... and if all you need is text the form parser below is fine.. also...if your not offering any real help...maybe you can keep your comments to yourself :) I hate people who answer questions with no or you cant do that or the like..it freakin lame...may

RE: help me please

2003-01-30 Thread Aimal Pashtoonmal
Dear folks, Can you please recommend possible pointers to my problem. I have a number of perl programs which worked on a large set of txt files, each program producing its own output for each of the files. I then put together a summary file of worth while results from these output files. All this

Re: still needing help

2003-01-30 Thread Todd W
"Jdavis" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > whatever it gets text where it needs to go... and if all you need is > text the form parser below is fine.. also...if your not offering any > real help...maybe you can keep your comments to yourself :)

RE: Perl OO - Dynamic method call

2003-01-30 Thread david
Nyimi Jose wrote: >> I guess you could do something similar in >> JavaScript/JScript/ECMAScript > > Any idea, if this is possible in Java ? > i don't think this's possible with Java. during compilation time, Java must resolve all method calls or it won't compile. but then you might be asking

Sorting a 2dim array / Spreadsheet::WriteExcel

2003-01-30 Thread Paul Kraus
I am dumping rows of an array into an excel file. I would like those rows to be sorted. If I wanted them to be sorted by the first elements how would I do it? Code #!/usr/bin/perl -w use strict; use Spreadsheet::WriteExcel; open IN, ($ARGV[0]); my @AoA; while (){ chomp; push (@AoA,[(split

getopt::std problem ignoring options

2003-01-30 Thread Jayesh Patel
Hi all, Just wondering how some of you are handling this issue that I have. I am using the getopt::std. When I pass in parameters to my script with a possible mistake, the getopts ignores the rest of my switches. For example: script.pl -a something -b something else -c another_one -d etc

SendMail Help Needed!

2003-01-30 Thread Palm Optins
Hello Everyone, Can someone tell me how to get sendmail to return bounced email to my address. EMAMPLE OF SENDMAIL MAILER open(MAIL,"|$sendmail -t"); print MAIL "From: $email ($first $last)\n"; print MAIL "To: $admin\n"; print MAIL "Reply-To: $email ($first $last)\n"; print MAIL "Subject: Help/I

RE: Sorting a 2dim array / Spreadsheet::WriteExcel

2003-01-30 Thread Timothy Johnson
how about: foreach(sort {$a->[0] cmp $b->[0]} @AoA){ #sort by the first element of the array created #by dereferencing each element of @AoA -Original Message- From: Paul Kraus [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 30, 2003 1:32 PM To: 'Perl' Subject: Sorting a 2dim array /

RE: Sorting a 2dim array / Spreadsheet::WriteExcel

2003-01-30 Thread Kipp, James
> > I am dumping rows of an array into an excel file. I would like those > rows to be sorted. If I wanted them to be sorted by the first elements > how would I do it? Try this: @AoA = sort { $a->[0] cmp $b->[0] } @Aoa; > > Code > > #!/usr/bin/perl -w > use strict; > use Spreadsheet::Write

RE: Sorting a 2dim array / Spreadsheet::WriteExcel

2003-01-30 Thread Wagner, David --- Senior Programmer Analyst --- WGO
Paul Kraus wrote: > I am dumping rows of an array into an excel file. I would like those > rows to be sorted. If I wanted them to be sorted by the first elements > how would I do it? > > Code > > #!/usr/bin/perl -w > use strict; > use Spreadsheet::WriteExcel; > open IN, ($ARGV[0]); > my @AoA;

WTF Naver-Mailer - WHAT IS THIS

2003-01-30 Thread Paul Kraus
Everytime I send a message to the perl list I get a message like this form some Naver mailer. What is this and how do I stop it. Header -- Received: from [211.218.150.104] by meemail1.pelsupply.com (NTMail 7.00. 0018/NU0133.02.dab8b08b) with ESMTP id przslaaa for [EMAIL PROTECTED]; Thu, 30 Jan

RE: Perl OO - Dynamic method call

2003-01-30 Thread david
Nyimi Jose wrote: > Just find out that Java provides something similar but not simple (for me > :) ) For those who are interested: > http://java.sun.com/j2se/1.3/docs/guide/reflection/proxy.html > > Ok, I stop bothering you all those Java stuff, sorry ;) > good reading! i wasn't aware of the Dy

an EXPR question

2003-01-30 Thread justino berrun
hello amigos how would i express some where before/first and some where after/later in a string for example, if (match this "-key" before this "5L" ){ do the rest... } on a string that look like so: $string="-key 3345 -door 3432 -5L"; thank you... -- ___

RE: still needing help

2003-01-30 Thread Westgate, Jared
Warning: opinionated text follows, so please don't take offense :) > > whatever it gets text where it needs to go... and if > all you need is > > text the form parser below is fine.. also...if your not offering any > > real help...maybe you can keep your comments to yourself :) > > I hate p

RE: getopt::std problem ignoring options

2003-01-30 Thread Toby Stuart
> -Original Message- > From: Jayesh Patel [mailto:[EMAIL PROTECTED]] > Sent: Friday, January 31, 2003 8:15 AM > To: '[EMAIL PROTECTED]' > Subject: getopt::std problem ignoring options > > > Hi all, > > Just wondering how some of you are handling this issue > that I have. > I am

Re: getopt::std problem ignoring options

2003-01-30 Thread kevin r
I am just a newbie here and this probably is not the best solution, but have you considered placing the argument in quotes. It works for me. script.pl -a something -b "something else" -c another_one -d etc Kevin From: Jayesh Patel <[EMAIL PROTECTED]> To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECT

Re: an EXPR question

2003-01-30 Thread Rob Dixon
Justino Berrun wrote: > hello amigos > > how would i express some where before/first and some where > after/later in a string for example, if (match this "-key" before > this "5L" ){ do the rest... } > on a string that look like so: $string="-key 3345 -door 3432 -5L"; Hello Justino. I think I und

Re: still needing help

2003-01-30 Thread Paul Johnson
On Thu, Jan 30, 2003 at 03:25:00PM -0700, Westgate, Jared wrote: > Warning: opinionated text follows, so please don't take offense :) I didn't see anything from which anyone should take any offence, unless you were talking about the length of your lines :-) > In fact, I occasionally find myself

RE: still needing help

2003-01-30 Thread Jenda Krynicky
From: "Westgate, Jared" <[EMAIL PROTECTED]> > In fact, I occasionally find myself frustrated with the brevity of > many responses to people's questions. I think a lot of people are > using this list to learn, not just to be told what to do. I'm not > saying to write a novel out of each response,

Re: TimeStamp compare

2003-01-30 Thread Paul Johnson
On Thu, Jan 30, 2003 at 10:23:14AM -0500, John Baker wrote: > On Thu, 30 Jan 2003, Bob Showalter wrote: > > > If you just want to compare two files to see if one is newer, use the -M > > operator: > > > >$need_recompile = 1 if -M 'foo.java' < -M 'foo.class'; > > > > -M gives you the age in day

Re: an EXPR question

2003-01-30 Thread Jeff 'japhy' Pinyan
On Jan 30, Rob Dixon said: >Justino Berrun wrote: >> hello amigos >> >> how would i express some where before/first and some where >> after/later in a string for example, if (match this "-key" before >> this "5L" ){ do the rest... } >> on a string that look like so: $string="-key 3345 -door 3432 -

Re: getopt::std problem ignoring options

2003-01-30 Thread Wiggins d'Anconia
Jayesh Patel wrote: Hi all, Just wondering how some of you are handling this issue that I have. I am using the getopt::std. When I pass in parameters to my script with a possible mistake, the getopts ignores the rest of my switches. For example: script.pl -a something -b something else

Re: getopt::std problem ignoring options

2003-01-30 Thread Wiggins d'Anconia
p.s. for those interested I have a cheat sheet I made a while ago at the following (I am sure I will clean it up at some point and make it harder to print ;-) but for now it is at least useful): http://danconia.org/online/GetOpt_QuickRef.txt -- To unsubscribe, e-mail: [EMAIL PROTECTED] For add

Installing Win32::AdminMisc

2003-01-30 Thread Andrew Gilchrist
I have been trying to step AdminMisc with Perl v5.8.0 from ActiveState. I have tried putting the pm and dll files in the places specified by the readme's however I have had no success with using ppm & install the win32-adminmisc.ppd file. Anyone have any luck with installing this module and can

Re: Installing Win32::AdminMisc

2003-01-30 Thread Jenda Krynicky
From: Andrew Gilchrist <[EMAIL PROTECTED]> > I have been trying to step AdminMisc with Perl v5.8.0 from > ActiveState. I have tried putting the pm and dll files in the places > specified by the readme's however I have had no success with using ppm > & install the win32-adminmisc.ppd file. Anyone

Re: Need help

2003-01-30 Thread R. Joseph Newton
Ron Geringer wrote: > "install > MAIL::sendmail". However, if I run it like that it errors out all over the > place. Could you give me a little direction on how to place it in the cgi or > perl script. Sorry for the misdirection. I noticed on review that I had used Mail::sendmail rather than Ma

MS Active Directory

2003-01-30 Thread Scott, Joshua
Good evening, I'm looking for advice or ideas on querying MS Active Directory. There is a module on CPAN but it appears to only run on Windows. I was wondering if there is any module or method to query from a Linux system. All of my other scripts are housed on a single Linux box and I'd really

RE: getopt::std problem ignoring options

2003-01-30 Thread Jayesh Patel
Wiggins, Thanks for the reply. This is what I understood as well. The is the reason why I didn't have: script.pl -a something -b "something else" -c another_one -d etc is because I really wanted to say: script.pl -a something -b something -e else -c another_one -d etc I found out that in an

RE: getopt::std problem ignoring options

2003-01-30 Thread Jayesh Patel
Never mind. I found that ARGUE has exactly what I'm looking for. dumb mistake. Thanks, Jayesh -Original Message- From: Jayesh Patel Sent: Thursday, January 30, 2003 7:59 PM To: 'Wiggins d'Anconia'; Jayesh Patel Cc: '[EMAIL PROTECTED]' Subject: RE: getopt::std problem ignoring options

Re: getopt::std problem ignoring options

2003-01-30 Thread Wiggins d'Anconia
Jayesh Patel wrote: So to make my script dummy proof, I am trying to find easy ways of parsing the input the getopts ignores. I guess what I am looking for is a getopt::std that saves the part that it ignores in a special variable. Does anyone do this ? I don't like the getopt::long because

Re: A very annoying regex question.

2003-01-30 Thread John W. Krahn
Michael Hooten wrote: > > > my @a = map {split (/\s*=\s*/, $_, 2)} split(/\r?\n/, ); > > Should not \s+ match \r?\n? Apparently not. \s matches \n and \r and \f and \t and ' '. Apparently the OP only wanted to match \r and \n. :-) John -- use Perl; program fulfillment -- To unsubscribe,

qmail

2003-01-30 Thread Ron Geringer
Is anyone familiar with qmail enough to help me set up a script in perl using qmail to redirect form information to a hardcoded email address. About the only thing I need would be the line specifically regarding the qmail command. thanks Ron -- To unsubscribe, e-mail: [EMAIL PROTECTED] For add

Re: System() function in 5.8

2003-01-30 Thread John W. Krahn
Ravinder Chauhan wrote: > > After installing Perl 5.8 my @files = system("dir bex*.* /od /b") function > has started behaving strange. Under 5.6 this function used to return the > list of files for matching files, however now in place of file list it is > returning a number "65280". I would apprec

Re: taking lines from a file

2003-01-30 Thread John W. Krahn
Rob Dixon wrote: > > Marcelo wrote: > > Hi everybody... > > How I can take lines from a file like this ... > > > > line1=A > > line2 > > line3 > > > > line1=B > > line2 > > line3 > > > > line1=A > > line2 > > line3 > > > > I want to take the followin 2 lines to the line1 when line1=A and > > write

program logic not right

2003-01-30 Thread Eri Mendz
Good day all, Have here a temperature conversion program im trying to "perfect" but no chance, its not working right. The input validation portion is fine, im satisfied likewise with the conversion to celsius. My problem is conversion to fahrenheit: the answer is not right so is the temp unit dur

Re: still needing help

2003-01-30 Thread R. Joseph Newton
Ron Geringer wrote: > This is your script - which I put in the cgi-bin > > /usr/bin/perl No, it is not. His script had a script header of: #!/usr/bin/perl Which is a comment only on a Windows machine. On a Linux box, it is a critical direction to the OS as to how to process the rest of the f

RE: still needing help

2003-01-30 Thread Ron Geringer
Actually I saw that after I sent it. I did a copy and past and apparently didn't catch the '#'. It was in the script --- it didn't appear in the copy I placed in the email. I actually tested it on both a Freebsd server and on a linux server with the same results. Sorry for the confusion. ron ---

Re: Problem with Getopt::Std

2003-01-30 Thread John W. Krahn
Pedro Antonio Reche wrote: > > Hi all, I using the code below that uses the Getopt::Std to process the > arguments from the command line (init subroutine). However, for some > reason I do not get the arguments from the switches. If anyone sees > what is the mistake I will be happy to hear about

Re: TimeStamp compare

2003-01-30 Thread R. Joseph Newton
John Baker wrote: > #-- This module is a must-have: > use Date::Manip; Hi John, I'm not so sure about your suggestion. You might wish to re-read the section concerning whether usage is appropriate in the doc for this module. The author explicitly recommends that the module be used only in pr

RE: program logic not right

2003-01-30 Thread Wagner, David --- Senior Programmer Analyst --- WGO
Eri Mendz wrote: > Good day all, > > Have here a temperature conversion program im trying to "perfect" but > no chance, its not working right. The input validation portion is > fine, im satisfied likewise with the conversion to celsius. My > problem is conversion to fahrenheit: the answer is not

Re: Perl OO - Dynamic method call

2003-01-30 Thread R. Joseph Newton
"NYIMI Jose (BMB)" wrote: > I know that in Perl OO the name of a method can be a variable. > Which end up with code like this: > > my $obj= new MyClass; > #here the thing > $obj->$method(); ObjectInstanceName.Method(param1, param2,...); I would not try to extrapolate Perl hacks to any language w

  1   2   >