[25180] in Perl-Users-Digest
Perl-Users Digest, Issue: 7429 Volume: 10
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Sat Nov 20 00:05:37 2004
Date: Fri, 19 Nov 2004 21:05:05 -0800 (PST)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Perl-Users Digest Fri, 19 Nov 2004 Volume: 10 Number: 7429
Today's topics:
Re: Bits of a number... why is this true? <uri@stemsystems.com>
Re: Bits of a number... why is this true? <tadmc@augustmail.com>
Re: Bits of a number... why is this true? <tadmc@augustmail.com>
Re: Complex datastructure documentation? <postmaster@castleamber.com>
Re: Complex datastructure documentation? <postmaster@castleamber.com>
Re: cookies vs. hidden fields <amead@comcast.net>
Easier web programming language: PERL or PHP? <marta@mariapia.com>
Re: Easier web programming language: PERL or PHP? <jurgenex@hotmail.com>
Re: Easier web programming language: PERL or PHP? <tadmc@augustmail.com>
FAQ 1.5: What is Ponie? <comdog@panix.com>
Re: finding the number of keys in hash <jurgenex@hotmail.com>
Re: how to add parameter to HTTP header in Perl?(not fo <postmaster@castleamber.com>
Re: how to add parameter to HTTP header in Perl?(not fo <postmaster@castleamber.com>
Re: Javascript, ODBC, and Oracle functions returning cu <leemroethomas@msn.com>
Re: Managing PERL5LIB with multiple perl installation <No_4@dsl.pipex.com>
Re: Problem with Hashes <jurgenex@hotmail.com>
Re: Really? <flowerysong00@yahoo.com>
sending info to forms <joey01@cfl.rr.com>
Re: sending info to forms <joey01@cfl.rr.com>
Re: sending info to forms <todd@tdegruyl.com>
Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Fri, 19 Nov 2004 23:50:35 GMT
From: Uri Guttman <uri@stemsystems.com>
Subject: Re: Bits of a number... why is this true?
Message-Id: <x7wtwhz9dh.fsf@mail.sysarch.com>
>>>>> "nwcn" == news west cox net <sean.berry2@cox.net> writes:
nwcn> I understand what you are saying. But, is there a way that I
nwcn> can still accomplish my original goal.
even so, you should learn more about binary representation.
as for how many bits in a perl number, that is trivial to find and you
don't need google. try perl -v
nwcn> I have 35 items, each of which I assign a number... like
nwcn> 1, 2, 4, 8, 16, 32, .... ,17179869184
bah! first off, if you are going to use bit fields, DON'T USE DECIMAL
VALUES!! use hex (0x) octal or even binary (0b). perl supports them all.
nwcn> 2**0 = 1
nwcn> 2**34 = 17179869184
duh! we know what bit fields are.
nwcn> So there are 35 numbers. After all options are decided the
nwcn> numbers are added up and saved to a database.
gack. that is a horrible design, adding bit fields and assuming they
will all fit into whatever you have. what about the DB? what binary
format and size will it have? you are just compounding your problem there.
nwcn> I now want to retrieve the number and see what bits are on.
nwcn> So I do something like:
nwcn> sub getBit {
nwcn> $number = shift;
nwcn> $bit = shift;
nwcn> if ($number & $bit) {
nwcn> do something
nwcn> }
nwcn> }
print 'gack!' x 2 ;
perldoc -f vec
and look at Bit::Vector on cpan.
nwcn> Actually my subroutine is more complex and is called recursivly
nwcn> to find all bits. But, how can I do this with numbers > 32 bit?
i would suggest you specify the real problem. i smell XY here. you are
trying to find a solution using X (in this case bit fields and poorly
understood at that) and you really want to solve something else but
haven't told us.
uri
--
Uri Guttman ------ uri@stemsystems.com -------- http://www.stemsystems.com
--Perl Consulting, Stem Development, Systems Architecture, Design and Coding-
Search or Offer Perl Jobs ---------------------------- http://jobs.perl.org
------------------------------
Date: Fri, 19 Nov 2004 21:56:01 -0600
From: Tad McClellan <tadmc@augustmail.com>
Subject: Re: Bits of a number... why is this true?
Message-Id: <slrncptg2g.9j6.tadmc@magna.augustmail.com>
news.west.cox.net <sean.berry2@cox.net> wrote:
> "Herb Martin" <news@LearnQuick.com> wrote in message
> news:sIund.7822$KQ2.5020@fe2.texas.rr.com...
>>A hint (but I don't know without further investigation) is
>> that most current machines/languages limit the size of an
>> integer to 32 bits (4 GB or 2GB with negatives).
>>
>> While this number 24465973248, or 24,465,973,248
>> is 24 billion -- quite bit (sorry) larger than the likely
>> 4 GB limit.
> I understand what you are saying. But, is there a way that I
> can still accomplish my original goal.
Yes, but a much much better solution would be to choose
a less absurd data structure...
> I have 35 items, each of which I assign a number... like
> 1, 2, 4, 8, 16, 32, .... ,17179869184
> I now want to retrieve the number and see what bits are on.
-----------------
sub bits_are_set {
my($num) = @_;
my @bits; # the bits that are set
foreach my $exponent ( reverse 0 .. 34 ) {
next if $num < 2 ** $exponent;
push @bits, $exponent;
$num -= 2 ** $exponent;
}
return @bits;
}
-----------------
> But, how can I do this with numbers > 32 bit?
You should seriously consider using a hash to represent your
set rather than using a bit vector.
--
Tad McClellan SGML consulting
tadmc@augustmail.com Perl programming
Fort Worth, Texas
------------------------------
Date: Fri, 19 Nov 2004 22:04:10 -0600
From: Tad McClellan <tadmc@augustmail.com>
Subject: Re: Bits of a number... why is this true?
Message-Id: <slrncptghq.9ru.tadmc@magna.augustmail.com>
Uri Guttman <uri@stemsystems.com> wrote:
>>>>>> "nwcn" == news west cox net <sean.berry2@cox.net> writes:
> bah! first off, if you are going to use bit fields, DON'T USE DECIMAL
^^^^^^^^^^^^^^^^^
> VALUES!!
^^^^^^
Your shift key doesn't work, but your caps lock key does?
You need to upgrade your keyboard man...
> use hex (0x) octal or even binary (0b). perl supports them all.
Bah! Ignore Uri this time.
0x0A hex
10 decimal
012 octal
1010 binary
Those are all *the same* value, just different representations
for that value.
Uri must have meant "don't use decimal representations" instead.
--
Tad McClellan SGML consulting
tadmc@augustmail.com Perl programming
Fort Worth, Texas
------------------------------
Date: 20 Nov 2004 01:46:33 GMT
From: John Bokma <postmaster@castleamber.com>
Subject: Re: Complex datastructure documentation?
Message-Id: <Xns95A6C929D3D4Acastleamber@130.133.1.4>
Bernard El-Hagin wrote:
> But it remains ugly. That's the point Uri is trying to get across. You
> can hide it away in the implementation, but that is all you're doing it
> - hiding it. You are not making it any less ugly.
Compare: hinding it in one central place, where it might be cleaned up one
day vs. an ugly datastructure munging it all over in your code.
Uri was just jumping the OOD bandwagon and yelling I had no clue about OO
and shouting about coding.
I wonder if Uri names his classes, and methods when he does OOD. And if so,
does he follow *coding* conventions?
Designing without taking *coding* in ones mind is hard, or maybe I can't
design at all then.
--
John Small Perl scripts: http://johnbokma.com/perl/
Perl programmer available: http://castleamber.com/
Happy Customers: http://castleamber.com/testimonials.html
------------------------------
Date: 20 Nov 2004 01:50:47 GMT
From: John Bokma <postmaster@castleamber.com>
Subject: Re: Complex datastructure documentation?
Message-Id: <Xns95A6C9E17E950castleamber@130.133.1.4>
Bernard El-Hagin wrote:
> I can't believe how asinine this thread has become. You know very well
> what Uri means by his statements and that he is right.
Uri was just trying to get a point across by claiming I don't know shit
about OO(D). He used quite a creative way of cutting away my examples
(hence ignoring them), and also commented on the wrong ones. His main
argument seemed to be: You don't understand, you got it all wrong.
Flavoured with some meta-blah blah.
My original statement: An OO way of accessing a complex data structure v.s.
munging it all over the place in your code still holds, is valid, and in my
not so humble opinion correct.
Uri's: you can write shit both ways, sure. But I assume a skilled coder,
not someone who can't distinguish a hash from an array.
Carpenter 1: I recommend a small wooden hammer, instead of a sledge hammer
Carpenter 2: But with sufficient force you can break this work of art with
either of them, you don't know shit about woodwork.
Ah, well.
--
John Small Perl scripts: http://johnbokma.com/perl/
Perl programmer available: http://castleamber.com/
Happy Customers: http://castleamber.com/testimonials.html
------------------------------
Date: Fri, 19 Nov 2004 22:59:22 -0600
From: Alan Mead <amead@comcast.net>
Subject: Re: cookies vs. hidden fields
Message-Id: <pan.2004.11.20.04.59.21.234069@comcast.net>
On Fri, 19 Nov 2004 17:35:19 -0500, daniel kaplan wrote:
> "Sherm Pendley" <spamtrap@dot-app.org> wrote in message
> news:xdadndRcVdMH7APcRVn-qw@adelphia.com...
>> daniel kaplan wrote:
> thanks? i think? no seriously, your answer would suggest to me i could
> go either way, without there being one major flaw that one has over the
> other
I think you would get higher quality feedback in a group devoted to web
design.
I suggest that you find a copy of Lincoln Stein's CGI.pm book.
It discusses this issue at some depth. Two reasons to avoid cookies
include: (1) their size limitations and (2) their voluntary nature. The
later issue is multi-faceted... some people just don't like them, they
might be turned off, etc. His book has a lot of other useful information,
some of which can be gleaned from the CGI.pm docs which are quite good.
------------------------------
Date: Sat, 20 Nov 2004 01:51:22 +0100
From: "Marta" <marta@mariapia.com>
Subject: Easier web programming language: PERL or PHP?
Message-Id: <cnm6na$obe$2@lacerta.tiscalinet.it>
Hi all!
I would to study a web programming language to create a script that, given
the following
input page (input.htm) where the user select the weight and volume of a
package to be shipped, returns the prices of various couriers ("yellow",
"blue" and "black").
Is Perl my best choice? or PHP? ASP is much more complicated?
~~~ input page input.htm:
<form method="GET" action="output.php" name="input">
SELECT THE VOLUME OF YOUR PACKAGE:
<input type="radio" name="volume" value="1"> from 0 to 1 m3
<input type="radio" name="volume" value="2"> from 1 to 2 m3
<input type="radio" name="volume" value="3"> from 2 to 3 m3
<br>SELECT THE WEIGHT OF YOUR PACKAGE:
<input type="radio" name="weight" value="100"> from 0 to 100 Kg
<input type="radio" name="weight" value="200"> from 100 to 200 Kg
<input type="radio" name="weight" value="300"> from 200 to 300 Kg
</form>
~~~ istructions to be integrated in the "output.php" script:
Courier "yellow" - for volume 1, 2 and 3:
if weight=100 then rate=600
if weight=200 then rate=900
if weight=300 then rate=1200
Courier "blue" - for volume 1 and 2:
if weight=100 then rate=400
if weight=200 then rate=700
Courier "black" - for volume 2 and 3:
if weight=100 then rate=800
if weight=200 then rate=1100
if weight=300 then rate=1500
~~~ sample request and result:
Example A) With the user input:
volume=2
weight=300
output.php must generate this result:
courier "yellow" = 1200
courier "black" = 1500
Example B) With the user input:
volume=1
weight=100
output.php must generate this result:
courier "yellow" = 600
courier "blue" = 400
------------------------------
Date: Sat, 20 Nov 2004 02:23:32 GMT
From: "Jürgen Exner" <jurgenex@hotmail.com>
Subject: Re: Easier web programming language: PERL or PHP?
Message-Id: <EUxnd.738$0k1.692@trnddc08>
Marta wrote:
> Is Perl my best choice? or PHP? ASP is much more complicated?
Is a Ford better then a Chevy? Or is a Mercedes more complicated?
Pick whatever you feel most comfortable with.
For a simple problem like you described above the programming language
really doesn't matter and chances are you will be most productive in
whatever language you feel most comfortable.
jue
------------------------------
Date: Fri, 19 Nov 2004 22:11:47 -0600
From: Tad McClellan <tadmc@augustmail.com>
Subject: Re: Easier web programming language: PERL or PHP?
Message-Id: <slrncpth03.9ru.tadmc@magna.augustmail.com>
[ newsgroups trimmed, I don't do the alt.* wasteland, only this wasteland ]
Marta <marta@mariapia.com> wrote:
> I would to study a web programming language
Then you are in the wrong place because Perl (not PERL) is
not a web programming language (but PHP is).
Perl is a general purpose programming language, it works great
for web stuff and for lots of other stuff as well.
PHP works great for web stuff.
> Is Perl my best choice?
Yes, if you ask in a Perl newsgroup.
> or PHP?
Yes, if you ask in a PHP newsgroup.
> ASP is much more complicated?
Proprietary stuff sucks big ones.
--
Tad McClellan SGML consulting
tadmc@augustmail.com Perl programming
Fort Worth, Texas
------------------------------
Date: Sat, 20 Nov 2004 05:03:01 +0000 (UTC)
From: PerlFAQ Server <comdog@panix.com>
Subject: FAQ 1.5: What is Ponie?
Message-Id: <cnmj65$sta$1@reader1.panix.com>
This message is one of several periodic postings to comp.lang.perl.misc
intended to make it easier for perl programmers to find answers to
common questions. The core of this message represents an excerpt
from the documentation provided with Perl.
--------------------------------------------------------------------
1.5: What is Ponie?
At The O'Reilly Open Source Software Convention in 2003, Artur Bergman,
Fotango, and The Perl Foundation announced a project to run perl5 on the
Parrot virtual machine named Ponie. Ponie stands for Perl On New
Internal Engine. The Perl 5.10 language implementation will be used for
Ponie, and there will be no language level differences between perl5 and
ponie. Ponie is not a complete rewrite of perl5.
For more details, see http://www.poniecode.org/
--------------------------------------------------------------------
Documents such as this have been called "Answers to Frequently
Asked Questions" or FAQ for short. They represent an important
part of the Usenet tradition. They serve to reduce the volume of
redundant traffic on a news group by providing quality answers to
questions that keep coming up.
If you are some how irritated by seeing these postings you are free
to ignore them or add the sender to your killfile. If you find
errors or other problems with these postings please send corrections
or comments to the posting email address or to the maintainers as
directed in the perlfaq manual page.
Note that the FAQ text posted by this server may have been modified
from that distributed in the stable Perl release. It may have been
edited to reflect the additions, changes and corrections provided
by respondents, reviewers, and critics to previous postings of
these FAQ. Complete text of these FAQ are available on request.
The perlfaq manual page contains the following copyright notice.
AUTHOR AND COPYRIGHT
Copyright (c) 1997-2002 Tom Christiansen and Nathan
Torkington, and other contributors as noted. All rights
reserved.
This posting is provided in the hope that it will be useful but
does not represent a commitment or contract of any kind on the part
of the contributers, authors or their agents.
------------------------------
Date: Fri, 19 Nov 2004 23:52:45 GMT
From: "Jürgen Exner" <jurgenex@hotmail.com>
Subject: Re: finding the number of keys in hash
Message-Id: <hHvnd.678$0k1.40@trnddc08>
DnaDude wrote:
> I would like to compute the number of
> keys in a hash, as in below, but without
> using a temporary variable.
>
> #this works
> use strict;
> @foo = keys %$A;
> $number = $#{@foo};
This gives you the last index in the array, which (unless you fooled around
with $[ ) will be one less then the number of elements.
Why not a simple
$number = keys %$A;
Or if you do want the minus-one number just substract 1:
$number = (keys %$A) -1 ;
jue
------------------------------
Date: 20 Nov 2004 01:53:28 GMT
From: John Bokma <postmaster@castleamber.com>
Subject: Re: how to add parameter to HTTP header in Perl?(not fowwlow the ? in url)
Message-Id: <Xns95A6CA57755D9castleamber@130.133.1.4>
Alont wrote:
> syntax error?
>
> ---------- Perl compiler ----------
> String found where operator expected at D:\Inetpub\wwwroot\whois.pl
> line 37, near "POST
>
> 'http://localhost/services/test.asp'"
> (Do you need to predeclare POST?)
^^^^
Yup, have a peek at: http://johnbokma.com/perl/currencyconverter.html
again, especially:
use strict;
use warnings;
use LWP::UserAgent;
use HTTP::Request::Common;
--
John Small Perl scripts: http://johnbokma.com/perl/
Perl programmer available: http://castleamber.com/
Happy Customers: http://castleamber.com/testimonials.html
------------------------------
Date: 20 Nov 2004 01:57:00 GMT
From: John Bokma <postmaster@castleamber.com>
Subject: Re: how to add parameter to HTTP header in Perl?(not fowwlow the ? in url)
Message-Id: <Xns95A6CAEFCBE58castleamber@130.133.1.4>
Gisle Aas wrote:
> John Bokma <postmaster@castleamber.com> writes:
>
>> So:
>>
>> my $action = POST
>>
>> 'http://localhost/services/test.asp', [
>>
>> parameter1 => 'baozhuangxiang',
>> ex => 'txt',
>> ];
>>
>> my $ua = LWP::UserAgent->new;
>> my $request = $ua->request( $action );
>
> This variable is misnamed as what's returned by $ua->request() is a
> 'response'.
Thanks, will update my examples.
> BTW, you can shorten this to:
>
> my $ua = LWP::UserAgent->new;
> my $response = $ua->post('http://localhost/services/test.asp', [
> parameter1 => 'baozhuangxiang',
> ex => 'txt',
> ]);
I try to write the examples on my pages a bit out, with a lot of
whitespace :-)
--
John Small Perl scripts: http://johnbokma.com/perl/
Perl programmer available: http://castleamber.com/
Happy Customers: http://castleamber.com/testimonials.html
------------------------------
Date: Fri, 19 Nov 2004 22:12:44 -0500
From: "Sympatico Member" <leemroethomas@msn.com>
Subject: Re: Javascript, ODBC, and Oracle functions returning cursors
Message-Id: <LCynd.36548$rc.2144320@news20.bellglobal.com>
Use JDeveloper free from the Oracle.com site, don't need code, it's like a
gian wizard writing the code for you.
"Roger Redford" <dba_222@yahoo.com> wrote in message
news:a8c29269.0408201532.76f8cab1@posting.google.com...
> Dear Experts,
>
> I'm attempting to marry a system to an Oracle 817 datbase.
> Oracle is my specialty, the back end mainly, so I don't
> know much about java or javascript.
>
> The system uses javascript to make ODBC calls to the db.
>
> The particular system I'm working with, will not work
> with an Oracle stored procedure I'm told. However, it
> will work with a stored function.
>
> I made a simple function in Oracle to return a single
> integer. It works in sqlplus, but not via javascript.
>
>
> -----------------------
>
> Create or replace function fnc_rtn_integer
> Return integer
> As
> Ln_temp integer := 0;
> Begin
> Select count(*)
> Into ln_temp
> From dual;
> Return LN_TEMP;
>
> End;
>
>
> -----------------------
> Sqlplus:
>
> declare
> ln_temp integer := -1;
> begin
> ln_temp := fnc_rtn_integer;
> dbms_output.put_line (ln_temp);
> end;
>
> 1
>
>
> -----------------------
> javascript:
>
>
> ESC.tb.pop_addr=1;{call fnc_rtn_integer}
>
> Netscape Privledge Manager exception
> netscape.security.ForbiddenTargetException: access to target denied
> davox.host.AnswerSoftDB:Using local character set: 0 :
> davox.host.AnswerSoftDB:? [State: S1000] [Oracle][ODBC][Ora]ORA-24334:
> no descriptor for this position
>
> davox.host.AnswerSoftDB:-2 ? [State: S1000]
> [Oracle][ODBC][Ora]ORA-24334: no descriptor for this position
>
> davox.host.HostConn:get ESC.tb.pop_addr Host -2 ? [State: S1000]
> [Oracle][ODBC][Ora]ORA-24334: no descriptor for this position
>
> -----------------------
> 2)
>
> The developers need to get a number of rows back.
> I've made an Oracle function, that will return a
> number of rows.
>
> ----------------------
>
> CREATE OR REPLACE FUNCTION fnc_rtn_emp_info
> RETURN types.ref_cursor
> AS
> emp_cursor types.ref_cursor;
>
> BEGIN
>
> OPEN emp_cursor FOR
> SELECT empno,
> ENAME,
> JOB
> From EMP;
>
> RETURN emp_cursor;
>
> END;
>
>
> CREATE OR REPLACE function fnc_dept_rpt
> Return types.DeptCurTyp
> AS
>
> dept_cv types.DeptCurTyp ;
>
> BEGIN
> OPEN dept_cv FOR
> SELECT DEPTNO,
> DNAME,
> LOC
> FROM DEPT;
>
> Return dept_cv;
> END;
>
> ----------------
>
> ESC.tb.pop_addr=1;{call FNC_DEPT_RPT()}
>
> Netscape Privledge Manager exception
> netscape.security.ForbiddenTargetException: access to target denied
> davox.host.AnswerSoftDB:Using local character set: 0 :
> davox.host.AnswerSoftDB:? [State: S1000] [Oracle][ODBC][Ora]ORA-24334:
> no descriptor for this position
>
> davox.host.AnswerSoftDB:-2 ? [State: S1000]
> [Oracle][ODBC][Ora]ORA-24334: no descriptor for this position
>
> davox.host.HostConn:get ESC.tb.pop_addr Host -2 ? [State: S1000]
> [Oracle][ODBC][Ora]ORA-24334: no descriptor for this position
>
> -----------------------
>
> ESC.tb.pop_addr=1;{call FNC_DEPT_RPT() AND ESC.tb.pop_addr=1;{call
> FNC_DEPT_RPT
>
> davox.host.AnswerSoftDB:Using local character set: 0 :
> davox.host.AnswerSoftDB:? [State: S1000] [Oracle][ODBC][Ora]ORA-00911:
> invalid character
>
> davox.host.AnswerSoftDB:-2 ? [State: S1000]
> [Oracle][ODBC][Ora]ORA-00911: invalid character
>
> davox.host.HostConn:get ESC.tb.pop_addr Host -2 ? [State: S1000]
> [Oracle][ODBC][Ora]ORA-00911: invalid character
>
> -----------------------
>
> ESC.tb.pop_addr=1;{call FNC_DEPT_RPT}
>
> Netscape Privledge Manager exception
> netscape.security.ForbiddenTargetException: access to target denied
> davox.host.AnswerSoftDB:Using local character set: 0 :
> davox.host.AnswerSoftDB:? [State: S1000] [Oracle][ODBC][Ora]ORA-24334:
> no descriptor for this position
>
> davox.host.AnswerSoftDB:-2 ? [State: S1000]
> [Oracle][ODBC][Ora]ORA-24334: no descriptor for this position
>
> davox.host.HostConn:get ESC.tb.pop_addr Host -2 ? [State: S1000]
> [Oracle][ODBC][Ora]ORA-24334: no descriptor for this position
>
>
> -----------------------
>
> A few questions.
>
> 1)
> I'm sure that this could be just a syntax issue.
> Any ideas? Please send the exact sytax that it should be.
>
>
> 2)
> Does anyone have experience getting a number of rows back
> with an Oracle cursor? Is this possible? Am I doing it
> in the right way?
>
>
> Thanks a lot!
------------------------------
Date: Sat, 20 Nov 2004 01:20:57 +0000
From: Big and Blue <No_4@dsl.pipex.com>
Subject: Re: Managing PERL5LIB with multiple perl installation
Message-Id: <419e9bfa$0$24201$cc9e4d1f@news-text.dial.pipex.com>
Jahagirdar Vijayvithal S wrote:
>
> The default global installation of perl here is 5.005_03
>
> I have installed v5.8.4 locally as a higher version was needed for some
> of the modules i am using.
>
> Now I need to constantly switch the value of PERL5LIB enviornment
> variable depending on wether I am using my local scripts or scripts
> developed by others .
One of the perils of relying on your GLOBAL environment settings for
data which are application specific. (This doesn't just apply to PERL5LIB
- global settings of things such as LD_LIBRARY_PATH are equally pernicious).
Write an interlude (for *both* perls if necessary) which sets the
relevant PERL5LIB for each before exec'ing the real perl executable (or
write modules and prepend a -M.... arg before those passed on before
exec'ing). Then use those interludes to free yourself from environmental
pollution.
--
-*- Just because I've written it here doesn't -*-
-*- mean that you should, or I do, believe it. -*-
------------------------------
Date: Sat, 20 Nov 2004 00:00:22 GMT
From: "Jürgen Exner" <jurgenex@hotmail.com>
Subject: Re: Problem with Hashes
Message-Id: <qOvnd.683$0k1.517@trnddc08>
daniel kaplan wrote:
> i have to admit, in the past few weeks am totally pleased and
> impressed with how much you can do with Perl by typing so
> little.....but here is where i miss some of the strictness of C....
You must be kidding. Since when does C have strict typing?
C doesn't even have a data type for text.
jue
------------------------------
Date: Fri, 19 Nov 2004 23:06:46 -0500
From: Paul Arthur <flowerysong00@yahoo.com>
Subject: Re: Really?
Message-Id: <mkgtp0pu1656jvs31b0ufnj1ddt0gr4n00@4ax.com>
On Fri, 19 Nov 2004 11:15:35 +0000, Richard Gration
<richard@zync.co.uk> mumbled:
>I also find this fragment amusing:
>
>"Perl is an interpreted language that can optionally be compiled ..."
>
>Interpreted *and* compiled? To say that about anything means they're
>approximating at best, and flat wrong at worst. Unless there really exists
>a language I haven't heard about for which there is both an interpreter
>and a compiler ...
QuickBASIC, perhaps?
------------------------------
Date: Sat, 20 Nov 2004 00:33:47 GMT
From: "roach" <joey01@cfl.rr.com>
Subject: sending info to forms
Message-Id: <Lhwnd.47944$8G4.26119@tornado.tampabay.rr.com>
Hey all
How can i send (post) info from a perl script (not a cgi script) to an html
form.
I did this along time ago! But i can not for the life of me figure out how i
did it =)
I know i used either LWP or URI, but hmmmm. Can anyone give me a snippet?
Thanks
------------------------------
Date: Sat, 20 Nov 2004 00:34:57 GMT
From: "roach" <joey01@cfl.rr.com>
Subject: Re: sending info to forms
Message-Id: <Riwnd.48065$8G4.13315@tornado.tampabay.rr.com>
hi
"roach" <joey01@cfl.rr.com> wrote in message news:...
> Hey all
>
> How can i send (post) info from a perl script (not a cgi script) to an
html
> form.
>
> I did this along time ago! But i can not for the life of me figure out how
i
> did it =)
>
> I know i used either LWP or URI, but hmmmm. Can anyone give me a snippet?
>
> Thanks
>
>
------------------------------
Date: Fri, 19 Nov 2004 18:43:01 -0600
From: Todd de Gruyl <todd@tdegruyl.com>
Subject: Re: sending info to forms
Message-Id: <slrncpt4ol.280.todd@espresso.local>
On 2004-11-20, roach <joey01@cfl.rr.com> wrote:
> How can i send (post) info from a perl script (not a cgi script) to an html
> form.
This is a faq:
perldoc -q "How do I automate an HTML form submission?"
--
Todd de Gruyl
todd@tdegruyl.com
------------------------------
Date: 6 Apr 2001 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Digest Administrivia (Last modified: 6 Apr 01)
Message-Id: <null>
Administrivia:
#The Perl-Users Digest is a retransmission of the USENET newsgroup
#comp.lang.perl.misc. For subscription or unsubscription requests, send
#the single line:
#
# subscribe perl-users
#or:
# unsubscribe perl-users
#
#to almanac@ruby.oce.orst.edu.
NOTE: due to the current flood of worm email banging on ruby, the smtp
server on ruby has been shut off until further notice.
To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.
#To request back copies (available for a week or so), send your request
#to almanac@ruby.oce.orst.edu with the command "send perl-users x.y",
#where x is the volume number and y is the issue number.
#For other requests pertaining to the digest, send mail to
#perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
#sending perl questions to the -request address, I don't have time to
#answer them even if I did know the answer.
------------------------------
End of Perl-Users Digest V10 Issue 7429
***************************************