[18881] in Perl-Users-Digest

home help back first fref pref prev next nref lref last post

Perl-Users Digest, Issue: 1049 Volume: 10

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Sun Jun 3 18:10:33 2001

Date: Sun, 3 Jun 2001 15:10:12 -0700 (PDT)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Message-Id: <991606212-v10-i1049@ruby.oce.orst.edu>
Content-Type: text

Perl-Users Digest           Sun, 3 Jun 2001     Volume: 10 Number: 1049

Today's topics:
    Re: My multi upload script isnt working right... (David Efflandt)
    Re: My multi upload script isnt working right... (krakle)
    Re: perl/cgi and dynamic hyperlink <godzilla@stomp.stomp.tokyo>
    Re: perl/cgi and dynamic hyperlink <todd@designsouth.net>
    Re: perl/cgi and dynamic hyperlink <godzilla@stomp.stomp.tokyo>
    Re: perl/cgi and dynamic hyperlink <todd@designsouth.net>
    Re: perl/cgi and dynamic hyperlink <godzilla@stomp.stomp.tokyo>
    Re: perl/cgi and dynamic hyperlink <andras@mortgagestats.com>
    Re: perl/cgi and dynamic hyperlink <godzilla@stomp.stomp.tokyo>
    Re: perl/cgi and dynamic hyperlink <franky.claeys@vt4.net>
    Re: perl/cgi and dynamic hyperlink <godzilla@stomp.stomp.tokyo>
    Re: To all the Newbies and Lurkers outthere <buggs-clpm@splashground.de>
    Re: To all the Newbies and Lurkers outthere <buggs-clpm@splashground.de>
    Re: To all the Newbies and Lurkers outthere <comdog@panix.com>
    Re: To all the Newbies and Lurkers outthere <buggs-clpm@splashground.de>
    Re: TOY: explore the representation of binary floating  <nospam-abuse@ilyaz.org>
    Re: TOY: explore the representation of binary floating  <buggs-clpm@splashground.de>
    Re: TOY: explore the representation of binary floating  <buggs-clpm@splashground.de>
    Re: use Module (if it exists) <todd@designsouth.net>
    Re: using perl with msaccess <nickmarkham@mailandnews.com>
    Re: using perl with msaccess <bart.lateur@skynet.be>
        Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)

----------------------------------------------------------------------

Date: Sun, 3 Jun 2001 18:09:02 +0000 (UTC)
From: see-sig@from.invalid (David Efflandt)
Subject: Re: My multi upload script isnt working right...
Message-Id: <slrn9hkv9u.oq1.see-sig@typhoon.xnet.com>

On 2 Jun 2001 17:29:45 -0700, krakle <krakle@visto.com> wrote:
> Hello! I am creating a file managment tool in perl (CGI). I'm pretty
> much finished with the script with all of its features except for
> uploading. I just cant get the uploading part to work at all. It
> creates an EMPTY file...

The cgi newsgroup is really a better place for CGI questions.  The only 
Perl specific thing is that you attempt to use a variable as a filehandle 
when it might not be.

> The script is designed to allow multiple uploads. If first prompts the
> user and asks him/her how many uploads do you want to do, it THEN
> successfully displays that amount of upload inputs and rename inputs
> to the user. Here is part of that HTML/Perl coding for the outputted
> upload boxes:
> 
> # ... BLAH ... #
>             <form action="$ENV{'SCRIPT_NAME'}" method="POST"
> enctype="multipart/form-data">
>               <input type="hidden" name="curdir" value="$dir_path">
>               <input type="hidden" name="total" value=$upnum>
>               <input type="hidden" name="action" value="upload">
> End_Html

I hope your script checks the $FORM{curdir} it gets back to make sure it
is within an accepted list.  Just because a variable is hidden doesn't
mean that it is safe from user editing.

> After the user fills out the upload form they are then taken
> successfully to this part of the PERL script:
> 
> # ... BLAH ... #
>     } elsif ($FORM{'action'} eq "upload") {
>         for ($upnum = 1; $upnum <= $FORM{'total'}; $upnum++) {
>             $file_upload = $FORM{'upload_file_' . $upnum};
>             $file_rename = $FORM{'rename_file_' . $upnum};
>             if ($file_upload ne "") {
>                if (open (UPLOAD, ">$dir_path/$file_rename")) {
>                         while (read($file_upload, $data, 1024)) {
>                            print UPLOAD $data; # Print buffer
>                         }
>                    close (UPLOAD);
>                   push(@success, "$file_upload has been uploaded to
> $dir_path/$file_rename.");
>                } else {
>                    push(@errors, "$file_upload was not uploaded to
> $dir_path/$file_rename: $!.");
>                }
>             }
>         }
>         # ... BLAH ... #
>     }
> # ... BLAH etc etc etc ... #
> 
> After the script completes this part the user is displayed with a
> status sheet stating the folowing uploads were either successfull or
> there was an error... It displays as success... The file was
> successfully created BUT its an empty file with 0 bytes..

It sounds like something is broken with the routine that parses file data
out of form data?  I suspect that what you are attempting to read is not a
filehandle.  Try printing it out to the browser (between <pre></pre> tags)
instead of to a file and see if you still get nothing.  You might consider
CGI.pm which has form and upload routines (perldoc CGI).

-- 
David Efflandt  (Reply-To is valid)  http://www.de-srv.com/
http://www.autox.chicago.il.us/  http://www.berniesfloral.net/
http://cgi-help.virtualave.net/  http://hammer.prohosting.com/~cgi-wiz/


------------------------------

Date: 3 Jun 2001 14:34:37 -0700
From: krakle@visto.com (krakle)
Subject: Re: My multi upload script isnt working right...
Message-Id: <237aaff8.0106031334.209ff67d@posting.google.com>

> I hope your script checks the $FORM{curdir} it gets back to make sure it
> is within an accepted list.  Just because a variable is hidden doesn't
> mean that it is safe from user editing.

Yes david it does check... curdir stands for current directory. If its
not included the script will give $FORM{'curdir'} the value of the
default DIR. If an invalid DIR is specified and error will occur
taking them back to there last visited directory.
 
> It sounds like something is broken with the routine that parses file data
> out of form data?  I suspect that what you are attempting to read is not a
> filehandle.  Try printing it out to the browser (between <pre></pre> tags)
> instead of to a file and see if you still get nothing.  You might consider
> CGI.pm which has form and upload routines (perldoc CGI).

I did consider CGI.pm and with that same method i received the same
results, an empty file with 0 bytes... Yes i tried outputting to the
browser, I received nothing.

___________________________________________________
To Godzilla: I was posting for help on my script
Not for help on how you would like me to post,
no offense. I posted tibets of my code so i can be
specific as possible so no one would reply saying
"its probably a goof on your HTML form coding" or
"I can't begin to tell you what could be wrong
since i am not looking at your code" and yes i did
break the code down to focus on that particular
section. Perhaps I should of posted that as well
so you could of told me that, that to was
irrelevant.


------------------------------

Date: Sun, 03 Jun 2001 09:46:08 -0700
From: "Godzilla!" <godzilla@stomp.stomp.tokyo>
Subject: Re: perl/cgi and dynamic hyperlink
Message-Id: <3B1A69D0.78489D88@stomp.stomp.tokyo>

Franky Claeys wrote:

(snippage)

> In a perl/cgi script I would like to construct something like this rule:

Forgive my terse wording but what is it with so many of
you using an expression "...something like" in your
articles? Do you want to contruct something like this
rule or construct this rule precisely as stated?

 
> print "<li>name <b><a href=names/$in{'username'}.htm></a></b> \n";
 
> $in comes from a form-input and in the dir names are all files with possible
> names (equal to the dynamic form-input).

My presumption is "dir names" means directory names. I read no
references to directory names within your article. Do you mean
files with "$in{username}.htm" as a name within a certain directory?
Your "possible names" makes little sense. You cannot have two
files with the same name within a single directory. Would you
consider posting again with wording which is clear and concise?

> These files need to be dynamically linked (based on the form-input).

You have already created a dynamic link with your href code.
 
> Anyone any suggestions to solve this issue?
 
There are many here who would offer good suggestions. However
you have not stated an issue to resolve. What is your question?

Do consider reviewing your article, then working on writing it
again in a coherent easy-to-read manner. Many of us are willing
to help but we, or least I, need to know what it is you are asking,
without having to guess.

Godzilla!


------------------------------

Date: Sun, 03 Jun 2001 17:30:09 GMT
From: "Todd Smith" <todd@designsouth.net>
Subject: Re: perl/cgi and dynamic hyperlink
Message-Id: <BuuS6.105586$I5.24730175@news1.rdc1.tn.home.com>


"Godzilla!" <godzilla@stomp.stomp.tokyo> wrote in message
news:3B1A69D0.78489D88@stomp.stomp.tokyo...
> Franky Claeys wrote:
>
> (snippage)
>
> > In a perl/cgi script I would like to construct something like this rule:
>
> Forgive my terse wording but what is it with so many of
> you using an expression "...something like" in your
> articles? Do you want to contruct something like this
> rule or construct this rule precisely as stated?
>
>
> > print "<li>name <b><a href=names/$in{'username'}.htm></a></b> \n";
>
> > $in comes from a form-input and in the dir names are all files with
possible
> > names (equal to the dynamic form-input).
>
> My presumption is "dir names" means directory names. I read no
> references to directory names within your article. Do you mean
> files with "$in{username}.htm" as a name within a certain directory?
> Your "possible names" makes little sense. You cannot have two
> files with the same name within a single directory. Would you
> consider posting again with wording which is clear and concise?
>
> > These files need to be dynamically linked (based on the form-input).
>
> You have already created a dynamic link with your href code.
>
> > Anyone any suggestions to solve this issue?
>
> There are many here who would offer good suggestions. However
> you have not stated an issue to resolve. What is your question?
>
> Do consider reviewing your article, then working on writing it
> again in a coherent easy-to-read manner. Many of us are willing
> to help but we, or least I, need to know what it is you are asking,
> without having to guess.
>
> Godzilla!

Jeez Godzilla, can't you just be nice for once and answer the question?

Franky- it's easy, just do this:

#!/usr/bin/perl
use CGI;

my $cgi = new CGI;
$user = $cgi->param('username');

print <<HTML;

<html>
<body>
Here's the <a href=/names/$user.html>link</a>
</body>
</html>

HTML
__END__
-todd




------------------------------

Date: Sun, 03 Jun 2001 10:52:30 -0700
From: "Godzilla!" <godzilla@stomp.stomp.tokyo>
Subject: Re: perl/cgi and dynamic hyperlink
Message-Id: <3B1A795E.FDA75E28@stomp.stomp.tokyo>

Todd Smith wrote:

> Godzilla! wrote:
> > Franky Claeys wrote:

> > (snippage)

(lots of snippage)


> Jeez Godzilla, can't you just be nice for once and answer the question?


> Franky- it's easy, just do this:
 
> #!/usr/bin/perl
> use CGI;
 
> my $cgi = new CGI;
> $user = $cgi->param('username');
 
> print <<HTML;
 
> <html>
> <body>
> Here's the <a href=/names/$user.html>link</a>
> </body>
> </html>
 
> HTML
> __END__


I would suggest you read for comprehension or, in this case,
make a better guess at what the originating author is asking.

Your code contains two very serious errors and does not address
what the originating author "appears" to be asking.

My preference is to ask when there is a good chance of
misunderstanding what a person states. 

Which of us is acting in a responsible manner?


Godzilla!


------------------------------

Date: Sun, 03 Jun 2001 18:22:26 GMT
From: "Todd Smith" <todd@designsouth.net>
Subject: Re: perl/cgi and dynamic hyperlink
Message-Id: <CfvS6.105682$I5.24781343@news1.rdc1.tn.home.com>



--
-todd
"Godzilla!" <godzilla@stomp.stomp.tokyo> wrote in message
news:3B1A795E.FDA75E28@stomp.stomp.tokyo...
> Todd Smith wrote:
>
> > Godzilla! wrote:
> > > Franky Claeys wrote:
>
> > > (snippage)
>
> (lots of snippage)
>
>
> > Jeez Godzilla, can't you just be nice for once and answer the question?
>
>
> > Franky- it's easy, just do this:
>
> > #!/usr/bin/perl
> > use CGI;
>
> > my $cgi = new CGI;
> > $user = $cgi->param('username');
>
> > print <<HTML;
>
> > <html>
> > <body>
> > Here's the <a href=/names/$user.html>link</a>
> > </body>
> > </html>
>
> > HTML
> > __END__
>
>
> I would suggest you read for comprehension or, in this case,
> make a better guess at what the originating author is asking.
>
> Your code contains two very serious errors and does not address
> what the originating author "appears" to be asking.
>
> My preference is to ask when there is a good chance of
> misunderstanding what a person states.
>
> Which of us is acting in a responsible manner?
>
>

It not like we're prescribing drugs without knowing what's wrong. It's just
sample code, no big deal.

yeah, I forgot to print the content type. What's the other?




------------------------------

Date: Sun, 03 Jun 2001 11:44:50 -0700
From: "Godzilla!" <godzilla@stomp.stomp.tokyo>
Subject: Re: perl/cgi and dynamic hyperlink
Message-Id: <3B1A85A2.45F38082@stomp.stomp.tokyo>

Todd Smith wrote:

> Godzilla! wrote:
> > Todd Smith wrote:
> > > Godzilla! wrote:
> > > > Franky Claeys wrote:

> > > > (snippage)

> > (lots of snippage)

> > > Jeez Godzilla, can't you just be nice for once and answer the question?

> > > Franky- it's easy, just do this:

(snipped erroneous code)

> > I would suggest you read for comprehension or, in this case,
> > make a better guess at what the originating author is asking.

> > Your code contains two very serious errors and does not address
> > what the originating author "appears" to be asking.

> > My preference is to ask when there is a good chance of
> > misunderstanding what a person states.

> > Which of us is acting in a responsible manner?


> It not like we're prescribing drugs without knowing what's wrong. It's just
> sample code, no big deal.
 
> yeah, I forgot to print the content type. What's the other?


Your lack of a content type print is amongst minor errors
I was not compelled to address. It's your code. It's your
responsibility to correct your erroneous code.

Being a responsible person who cares enough to invest time
and effort into posting correct and working code, my choice
is to wait and discover if this originating author posts a
clarification article per my suggestion.


Godzilla!


------------------------------

Date: Sun, 03 Jun 2001 14:45:01 -0400
From: Andras Malatinszky <andras@mortgagestats.com>
Subject: Re: perl/cgi and dynamic hyperlink
Message-Id: <3B1A85AD.73D63258@mortgagestats.com>



"Godzilla!" wrote:

> Franky Claeys wrote:
>
> (snippage)
>
> > In a perl/cgi script I would like to construct something like this rule:
>
> Forgive my terse wording but what is it with so many of
> you using an expression "...something like" in your
> articles? Do you want to contruct something like this
> rule or construct this rule precisely as stated?

Godzilla, the OP says, and I quote, "I would like to construct something like this
rule." To me, this is quite unequivocal. Yet you ask him if he wants to construct
something like this rule or this rule precisely as stated. (My assumption is, when
you write "contruct" you actually mean "construct.") Why do you ask him that? Has
he not clearly stated his intention to construct something like this rule? I
suggest next time you respond to a post, you actually read and comprehend the post
first so you don't waste time and resources by asking a question that has already
been clearly answered. Also, don't say "contruct" when you mean "construct." In
general, don't say one thing when you mean another. If you don't say what you
mean, you can't possibly mean what you say, and one should always mean what one
says.

Please think about these suggestions, take them to heart; perhaps you can mend
your ways and still become a more productive member of this community.



------------------------------

Date: Sun, 03 Jun 2001 12:34:45 -0700
From: "Godzilla!" <godzilla@stomp.stomp.tokyo>
Subject: Re: perl/cgi and dynamic hyperlink
Message-Id: <3B1A9155.55F92489@stomp.stomp.tokyo>

Andras Malatinszky wrote:
 
> Godzilla! wrote:
> > Franky Claeys wrote:

> > (snippage)


(snipped village idiot blatherings)


> Please think about these suggestions, take them to heart;
> perhaps you can mend your ways and still become a more 
> productive member of this community.


Oh Your Great Blowness, please have mercy in your
judgement upon this slovenly village wretch! I am
but a foolish wench with no mind of her own. Oh
please overlook my ignorant ways, my Great Lowness!
I beg of thee, my Lord Lumpshit, do not banish this
unworthy harlot from your Perl Perl Land Kingdom
for my simple minded ways! I am truly but a fool.

* slobbers, genuflects, farts *

So, whatcha say my Great Imperial Imbecile?
Gonna let me stay?


Godzilla!


------------------------------

Date: Sun, 3 Jun 2001 21:38:31 +0200
From: "Franky Claeys" <franky.claeys@vt4.net>
Subject: Re: perl/cgi and dynamic hyperlink
Message-Id: <9fe3p5$ff0$1@mykenos.hogent.be>


"Godzilla!" <godzilla@stomp.stomp.tokyo> schreef in bericht
news:3B1A69D0.78489D88@stomp.stomp.tokyo...
> Franky Claeys wrote:
>
> (snippage)
>
> > In a perl/cgi script I would like to construct something like this rule:
>
> Forgive my terse wording but what is it with so many of
> you using an expression "...something like" in your
> articles? Do you want to contruct something like this
> rule or construct this rule precisely as stated?
>
>
> > print "<li>name <b><a href=names/$in{'username'}.htm></a></b> \n";

In the directory "names" there are some html-files.
$in{'username'} comes from a form-input, html-textfield name is 'username'.
The filename of the invoked hml-file in the directory "names" depends on the
form input. In that way the above href is dynamic.
My problem is that print "<li>name <b><a
href=names/$in{'username'}.htm></a></b> \n"; contains some syntax-mistakes,
and I'm not able not correct them (bit of a newbie to all this cool stuff
and a lack of experience ...)

Can anyone correct this mess I made?
Thanks!

[snip]

> > $> Godzilla!




------------------------------

Date: Sun, 03 Jun 2001 13:20:46 -0700
From: "Godzilla!" <godzilla@stomp.stomp.tokyo>
Subject: Re: perl/cgi and dynamic hyperlink
Message-Id: <3B1A9C1E.324BF36B@stomp.stomp.tokyo>

Franky Claeys wrote:
 
> Godzilla! wrote:
> > Franky Claeys wrote:

> > (snippage)

(more snippage)

> > > print "<li>name <b><a href=names/$in{'username'}.htm></a></b> \n";
 
> In the directory "names" there are some html-files.
> $in{'username'} comes from a form-input, html-textfield name is 'username'.
> The filename of the invoked hml-file in the directory "names" depends on the
> form input. In that way the above href is dynamic.

> My problem is that

> print "<li>name <b><a> href=names/$in{'username'}.htm></a></b> \n";

> contains some syntax-mistakes, and I'm not able not correct them...



#!perl

$in{username} = "godzilla_rocks";

print "<li>name <b><a href=names/$in{'username'}.htm></a></b> \n";

exit;

PRINTED RESULTS:
________________

<li>name <b><a href=names/godzilla_rocks.htm></a></b>


I find no syntax error with your print statement. However,
your href should be enclosed in quotes per html standards.

Your previous article suggests you are looking for a script
which recursively searches a directory tree. This article
indicates a print syntax problem.

You need to clarify what you ask; there is no apparent problem.


Godzilla!


------------------------------

Date: Sun, 3 Jun 2001 19:38:18 +0200
From: buggs <buggs-clpm@splashground.de>
Subject: Re: To all the Newbies and Lurkers outthere
Message-Id: <9fdspk$d5n$05$1@news.t-online.com>

brian d foy wrote:

> why not just use cg-eye?

Is that a count me in brian ?
;-)

Why not CGI ?
Because actually I was going to clean the programm
up myself when it came to my mind that
this could be a nice beginners project.

And afterwards in defense I migth add,
It does a cool trick,
helps debugging CGI's and shows related techniques,
it extensively makes use of CPAN,
it's about 150 lines of code,
it's far from perfect.


Currently I'm thinking about the organizational part.
Is sourceforge to complicated for beginners ?
Shall we make a tutorial day at
sourceforge and then just use it ?
Shall we make our own web interface ?
May be that is another project?

Any ideas are appreciated.
Any critic is appreciated.
Anybody is appreciated.


Buggs


--

"Offhand, I'd say we're past the negotiation stage."
Obi-Wan


------------------------------

Date: Sun, 3 Jun 2001 19:40:58 +0200
From: buggs <buggs-clpm@splashground.de>
Subject: Re: To all the Newbies and Lurkers outthere
Message-Id: <9fdstt$d5n$05$2@news.t-online.com>

Martien Verbruggen wrote:

> On Sun, 3 Jun 2001 11:00:00 +0200,
> buggs <buggs-clpm@splashground.de> wrote:
> 
>> Currently you are participating
>> in the Perl community in a silent
>> non-interactive but still very valuable way.
> 
> How do you know? Do you have cameras here? I though that the tinfoil was
> supposed to protect me from that.

I was just guessing.

Will you help ? 


-- 
"I find your lack of faith disturbing"
Darth Vader


------------------------------

Date: Sun, 03 Jun 2001 14:31:12 -0400
From: brian d foy <comdog@panix.com>
Subject: Re: To all the Newbies and Lurkers outthere
Message-Id: <comdog-0CDBA1.14311203062001@news.panix.com>

In article <9fdspk$d5n$05$1@news.t-online.com>, buggs 
<buggs-clpm@splashground.de> wrote:

> brian d foy wrote:
> 
> > why not just use cg-eye?
> 
> Is that a count me in brian ?
> ;-)

nope.  i made one of these a long time ago (and presented
it at the first Perl Conference).  my interest has since
disappeared ;)

> Why not CGI ?

no - why not the free service that does the same thing
and is called cg-eye?  see the CGI Meta FAQ.

-- 
brian d foy <comdog@panix.com>
CGI Meta FAQ - http://www.perl.org/CGI_MetaFAQ.html
Troubleshooting CGI scripts - http://www.perl.org/troubleshooting_CGI.html



------------------------------

Date: Sun, 3 Jun 2001 20:56:24 +0200
From: buggs <buggs-clpm@splashground.de>
Subject: Re: To all the Newbies and Lurkers outthere
Message-Id: <9fe1bb$k9f$01$1@news.t-online.com>

brian d foy wrote:

> In article <9fdspk$d5n$05$1@news.t-online.com>, buggs
> <buggs-clpm@splashground.de> wrote:
> 
>> brian d foy wrote:
>> 
>> > why not just use cg-eye?
>> 
>> Is that a count me in brian ?
>> ;-)
> 
> nope.  i made one of these a long time ago (and presented
> it at the first Perl Conference).  my interest has since
> disappeared ;)

Will you share your experience with me ?
Is there a website about this project ?
What do you think about sourceforge
or a bit wierder slash's code?
 
>> Why not CGI ?
> 
> no - why not the free service that does the same thing
> and is called cg-eye?  see the CGI Meta FAQ.

Oh, it wasn't a CGI web application.
It was a modperl / Progress Webspeed (a WebApplication Server)
/ Progress Database webapplication.
And I needed the exact headers as outputted in real life,
since we only had problems in certain situations in
combination with an older squid version.
Turned out to be a duplicate Expires-Header.

Cheers,
Buggs



------------------------------

Date: Sun, 3 Jun 2001 21:17:25 +0000 (UTC)
From: Ilya Zakharevich <nospam-abuse@ilyaz.org>
Subject: Re: TOY: explore the representation of binary floating point numbers
Message-Id: <9fe9h5$jnd$1@agate.berkeley.edu>

[A complimentary Cc of this posting was sent to
Samuel Kilchenmann
<skilchen@swissonline.ch>], who wrote in article <9fdj0k$3igj2$1@ID-13368.news.dfncis.de>:
> To explore the internal representation of binary floating-point
> doubles i have written the following toy script. It shows the bits of
> a double (on a little-endian machine). Then it interprets those bits
> according to the IEEE-754 specification.

IIRC, there is no IEEE specification of the bit representation of
f.p. numbers.  So all you know is that your script works on your machine.

Hope this helps,
Ilya


------------------------------

Date: Sun, 3 Jun 2001 23:22:38 +0200
From: buggs <buggs-clpm@splashground.de>
Subject: Re: TOY: explore the representation of binary floating point numbers
Message-Id: <9fe9u5$7ra$02$1@news.t-online.com>

Samuel Kilchenmann wrote:

> 
> Please let me know if you find any errors or if you know better ways to
> show the
> internal representation of binary floating-point doubles.

Pretty nice tool :-)
Thanks a lot.


Buggs


------------------------------

Date: Sun, 3 Jun 2001 23:30:43 +0200
From: buggs <buggs-clpm@splashground.de>
Subject: Re: TOY: explore the representation of binary floating point numbers
Message-Id: <9feack$ss6$00$1@news.t-online.com>

Ilya Zakharevich wrote:


> IIRC, there is no IEEE specification of the bit representation of
> f.p. numbers.  So all you know is that your script works on your machine.
> 
> Hope this helps,
> Ilya

Hi Ilya,
could you explain a bit more what that does mean ?
I seldom work with floats with more than to digits after the comma ;-)
Is that a big endian / little endian issue ?

If not, how do the implementations vary ?

TIA,
Buggs



------------------------------

Date: Sun, 03 Jun 2001 18:56:43 GMT
From: "Todd Smith" <todd@designsouth.net>
Subject: Re: use Module (if it exists)
Message-Id: <LLvS6.105760$I5.24830634@news1.rdc1.tn.home.com>


<nobull@mail.com> wrote in message news:u9d78qdb3s.fsf@wcl-l.bham.ac.uk...

> Better still, since this is in BEGIN{}, why not keep it as use() and
> wrap it in eval?
>

--------------------------------
BEGIN{

$cgi = eval 'use CGI' ? 1 : 0;
$s = eval 'use sdsdsd' ? 1 : 0;

}

print "cgi($cgi), s($s)\n";

prints: cgi(0), s(0)
----------------------------------
BEGIN{

$cgi = eval 'require CGI' ? 1 : 0;
$s = eval 'require sdsdsd' ? 1 : 0;

}

print "cgi($cgi), s($s)\n";

prints: cgi(1), s(0)
-------------------------------------





------------------------------

Date: Sun, 3 Jun 2001 12:14:51 -0400
From: "Nicholas R. Markham" <nickmarkham@mailandnews.com>
Subject: Re: using perl with msaccess
Message-Id: <9fdnkn$lug$1@newsfeeds.rpi.edu>

There's a module Win32::ODBC that I've used fairly successfully to run SQL
queries on ODBC databases, which certainly include Access.  That might do
what you want.

"Murlimanohar Ravi" <eng80956@nus.edu.sg> wrote in message
news:191C91BDFE8ED411B84400805FBE794C11200985@pfs21.ex.nus.edu.sg...
> hi all,
> could anyone pls tell me whether it is possible to use perl with
> msaccess? i'm running perl 5,6,1,626 on a windows nt system and i need
> to able to create, read from and modify msaccess databases. is there any
> indirect or direct way to do this?
> i'm told taht asp can be used to deal with access databases but i don't
> know asp.
> would anyone have any ideas for me?
> thanks.
> cheers,
> murli.
>



------------------------------

Date: Sun, 03 Jun 2001 19:00:11 GMT
From: Bart Lateur <bart.lateur@skynet.be>
Subject: Re: using perl with msaccess
Message-Id: <382lht4cklccm2272hn9io6fm3fv5nahqd@4ax.com>

Murlimanohar Ravi wrote:

>could anyone pls tell me whether it is possible to use perl with
>msaccess? i'm running perl 5,6,1,626 on a windows nt system and i need
>to able to create, read from and modify msaccess databases. is there any
>indirect or direct way to do this?

Yes. You need a module that can talk ODBC. There are two:DBI plus
DBD::ODBC (preferred), or the standalone Win32::ODBC.

Using DBI, the easiest approach (IMO) is to add a DSN in Windows' ODBC
Control Panel, and simply name that DSN in your connect string.

-- 
	Bart.


------------------------------

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.  

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 1049
***************************************


home help back first fref pref prev next nref lref last post