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,
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
> 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
>
> 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
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
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
"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
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
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
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):
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
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
>
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]
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
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
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
&& 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 ($
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->$
"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
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
> -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
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
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
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
[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
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
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]
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
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
>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
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
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
>
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
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
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
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,
>
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
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
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
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
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
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
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::
> 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
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
>
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
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
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
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
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:
>
>
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
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
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
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:
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
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
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
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
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
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
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
"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 :)
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
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
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
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
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 /
>
> 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
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;
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
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
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...
--
___
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
> -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
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
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
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
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,
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
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 -
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
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
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
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
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
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
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
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
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
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,
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
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
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
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
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
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
---
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
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
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
"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 - 100 of 104 matches
Mail list logo