[12918] in Perl-Users-Digest

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

Perl-Users Digest, Issue: 328 Volume: 9

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Sun Aug 1 22:07:23 1999

Date: Sun, 1 Aug 1999 19:05:07 -0700 (PDT)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)

Perl-Users Digest           Sun, 1 Aug 1999     Volume: 9 Number: 328

Today's topics:
    Re: ? path to SendMail on NT ??? (elephant)
        binary data <giorgos@perlfect.com>
    Re: binary data (Abigail)
        chmod function (NiteFever)
    Re: Confusion with the Schwartzian Transform used in so (brian d foy)
    Re: Confusion with the Schwartzian Transform used in so <gt7202e@prism.gatech.edu>
    Re: defconfaq - Q&A on arguments against the hypothetic (Abigail)
    Re: defconfaq - Q&A on arguments against the hypothetic <tchrist@mox.perl.com>
    Re: help needed - database driven html pages makarand_kulkarni@my-deja.com
    Re: How do i append the beginning of a HTML file? makarand_kulkarni@my-deja.com
    Re: How do i append the beginning of a HTML file? (Abigail)
    Re: newbie - fill array w/ contents of a file (Abigail)
        newbie Q (was <Re: Help opening a file>) <nslatius@dds.nl>
    Re: Newbie Q: How to check if invoked as CGI program makarand_kulkarni@my-deja.com
        perl compiler wanted <Mukerji.Saugato.S@bhp.com.au>
    Re: perl compiler wanted (Sam Holden)
    Re: Perl with oracle questions ... makarand_kulkarni@my-deja.com
    Re: Perl with oracle questions ... makarand_kulkarni@my-deja.com
    Re: Q: perl driver for window nt and oracle 8 ? makarand_kulkarni@my-deja.com
    Re: Running scrips on own pc (elephant)
    Re: Solaris7 (sparc) Sockets - resource temporarily una (Martien Verbruggen)
    Re: VERY,VERY URGENT: I need help with the Net::FTP mod <b.schindlholzer@tirol.com>
        Digest Administrivia (Last modified: 1 Jul 99) (Perl-Users-Digest Admin)

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

Date: Mon, 2 Aug 1999 10:22:20 +1000
From: e-lephant@b-igpond.com (elephant)
Subject: Re: ? path to SendMail on NT ???
Message-Id: <MPG.120f8fca56569a46989baa@news-server>

I R A Darth Aggie writes ..
>How are you invoking sendmail? Most of the scripts I've seen do it thusly:
>
>open(MAIL,'|/usr/lib/sendmail -ot'); # untested, from memory
>
>When this sort of open fails, it doesn't cause an error.

it does if you (as you should be) use the -w (warn) switch

>                                                         Try:
>
>open(MAIL,'|/usr/lib/sendmail -ot') or die "sendmail: $!";

oh .. and this DOES generate an error does it ? .. perhaps you should 
check this as well .. and then read a little more of the perlipc 
documentation .. specifically the "Using open() for IPC" section

-- 
 jason - remove all hyphens for email reply -


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

Date: Mon, 02 Aug 1999 03:30:15 +0000
From: Giorgos Zervas <giorgos@perlfect.com>
Subject: binary data
Message-Id: <37A510C7.51D7D683@perlfect.com>

Dear all,

Could someone explain to me why when reading binary data with read and
sysread the data appears in different order? 

Which one should I use to read binary data from a file?

Thanks in advance,
Giorgos.
-- 
Perlfect Solutions
http://perlfect.com


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

Date: 1 Aug 1999 20:22:20 -0500
From: abigail@delanet.com (Abigail)
Subject: Re: binary data
Message-Id: <slrn7q9slb.psl.abigail@alexandra.delanet.com>

Giorgos Zervas (giorgos@perlfect.com) wrote on MMCLXII September MCMXCIII
in <URL:news:37A510C7.51D7D683@perlfect.com>:
~~ 
~~ Could someone explain to me why when reading binary data with read and
~~ sysread the data appears in different order? 

I don't think it does. What makes you think it does? (Where's your code?)

~~ Which one should I use to read binary data from a file?

That depends.

~~ Perlfect Solutions
~~ http://perlfect.com

Maybe there's someone in your team of "expert perl programmers who have
profound knowledge" that knows the difference between read and sysread?



Abigail
-- 
package Z;use overload'""'=>sub{$b++?Hacker:Another};
sub TIESCALAR{bless\my$y=>Z}sub FETCH{$a++?Perl:Just}
$,=$";my$x=tie+my$y=>Z;print$y,$x,$y,$x,"\n";#Abigail


  -----------== Posted via Newsfeeds.Com, Uncensored Usenet News ==----------
   http://www.newsfeeds.com       The Largest Usenet Servers in the World!
------== Over 73,000 Newsgroups - Including  Dedicated  Binaries Servers ==-----


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

Date: Mon, 02 Aug 1999 01:13:27 GMT
From: abc@abc.net (NiteFever)
Subject: chmod function
Message-Id: <37a4fd7b.35376619@news5.bellatlantic.net>

I'm tring to make this work:

$OrignialLogFile = 'sample.txt'
 ..
 ..
 ..
 ..
chmod (0770, $OrignialLogFile)

What won't this work?


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

Date: Sun, 01 Aug 1999 20:48:36 -0400
From: brian@pm.org (brian d foy)
Subject: Re: Confusion with the Schwartzian Transform used in sorting
Message-Id: <brian-0108992048360001@1cust132.tnt1.durham.nc.da.uu.net>

In article <7o2heb$7nl@dfw-ixnews11.ix.netcom.com>, ebohlman@netcom.com
(Eric Bohlman) wrote:

>brian d foy (brian@pm.org) wrote:

>: you don't really need to separate the fields.  you could write
>: your own sort subroutine in which the field separator sorts higher

>You mean "sorts *lower* than everything else."  If it sorted higher, then

wait a minute, the monitor's upside down...

-- 
brian d foy                    
CGI Meta FAQ <URL:http://www.smithrenaud.com/public/CGI_MetaFAQ.html>
Perl Monger Hats! <URL:http://www.pm.org/clothing.shtml>


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

Date: Sun, 01 Aug 1999 21:50:58 -0400
From: andy barfoot <gt7202e@prism.gatech.edu>
Subject: Re: Confusion with the Schwartzian Transform used in sorting
Message-Id: <37A4F982.BDED3AF3@prism.gatech.edu>

meteorman wrote:
> I really appreciate all the comments and suggestions.  I still don't have
> these transforms down pat yet, but I'm getting there.  Here is my version so
> far.  Is it correct now?   I am still having a difficult time trying to
> figure out what is going on internally.   I understand the concept but do
> not know how map is storing the data internally.  This is where I am getting
> lost.  Would anyone be willing to explain it in detail?
> 
> ///////////////////  here is the script
> open LIST, ">c:\\temp\\fws_list" || die "Couldn't open file. $!\n";


The '>' means open for output, so omit it.

Use one of these to get what you want:
	open(LIST,'c:/blah') || die "..";
	open LIST,'c:/blah' or die "..";
What you have is the same as
	open LIST, ('c:/blah' || die "..");
('or' and '||' have different precedence.  Weird, but true.)


> 
> @by_spotname =
>   map { $_->[0] }
>   sort { $a->[0] cmp $b->[0] }
>   map { [$_, (split /,/)[0]] }
>   <LIST>;
> 


There's a tutorial at:
	http://www.5sigma.com/perl/schwtr.html


Put this at the top of your program:

sub show {
	local $" = ',';
	local $, = ",\n";
	local $\ = "\n";
	print map {ref $_? "[@$_]": $_} @_;
}


Now try:

	my @stuff = <LIST>;

	show ['just','a'],'test';

	show @stuff;

	show map { [$_, (split /,/)[0]] } @stuff;

	show 
	sort { $a->[1] cmp $b->[1] }
	map { [$_, (split /,/)[0]] }
	@stuff;

	show
	map { $_->[0] }
	sort { $a->[1] cmp $b->[1] }
	map { [$_, (split /,/)[0]] }
	@stuff;


Of course, there's another way to sort:

	my @stuff = <LIST>;
	my %places = ();
	foreach (@stuff) {
		$places{$_} = (split /,/)[0];
	}
	print sort { $places{$a} cmp $places{$b} } @stuff;



> This version compiles without any problems on the command line us '-w',
> unlike the previous attempt.  However, I am still unsure how to "see" if the
> data is correct.  Several of you mentioned renaming the file and then
> storing to the original file.  Since I am just starting perl, probably
> obvious, I have not used this technique.  Could some one show me an example.


There's a 'rename' command.. check the manual.  If you need a tutorial I
recommend "Learning Perl" from O'Reilly.


Hope this helps,


-- 
 andy barfoot


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

Date: 1 Aug 1999 19:43:12 -0500
From: abigail@delanet.com (Abigail)
Subject: Re: defconfaq - Q&A on arguments against the hypothetical ?? operator
Message-Id: <slrn7q9qbr.psl.abigail@alexandra.delanet.com>

Tom Christiansen (tchrist@mox.perl.com) wrote on MMCLXII September
MCMXCIII in <URL:news:37a4da15@cs.colorado.edu>:
'' 
'' This whole thing is a tempest in a tea cup.  I'll let others infer from
'' reading Sarathy's and Larry's statements how likely its deploymeet is.


Which statement of Larry are you refering to? The last time I heard Larry
say anything about the ?? wasn't at all that it would never be in. He hadn't
made any decision. He did however come up with the name for the operator,
which he probably would never have done if he considers it a really bad idea.

But in the most recent discussion on p5p on this topic, Larry's contribution
has been exactly 0. Nada. Zilch. Nothing. 

Please stop trying to speak for Larry - Larry is very capable of speaking
for himself. Even if he doesn't do it that often on p5p, and never on this
forum.




Abigail
-- 
perl -we '$@="\145\143\150\157\040\042\112\165\163\164\040\141\156\157\164".
             "\150\145\162\040\120\145\162\154\040\110\141\143\153\145\162".
             "\042\040\076\040\057\144\145\166\057\164\164\171";`$@`'


  -----------== Posted via Newsfeeds.Com, Uncensored Usenet News ==----------
   http://www.newsfeeds.com       The Largest Usenet Servers in the World!
------== Over 73,000 Newsgroups - Including  Dedicated  Binaries Servers ==-----


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

Date: 1 Aug 1999 19:29:13 -0700
From: Tom Christiansen <tchrist@mox.perl.com>
Subject: Re: defconfaq - Q&A on arguments against the hypothetical ?? operator
Message-Id: <37a4f469@cs.colorado.edu>

     [courtesy cc of this posting mailed to cited author]

In comp.lang.perl.misc, 
    abigail@delanet.com writes:
:'' This whole thing is a tempest in a tea cup.  I'll let others infer from
:'' reading Sarathy's and Larry's statements how likely its deploymeet is.
:
:
:Which statement of Larry are you refering to? 

I've referring to the quotes in the document and the full messages
therein presented, which is at:

    http://www.perl.com/tchrist/defop/defconfaq.html
    http://www.perl.com/tchrist/defop/defconfaq.pod

And has been updated just now.

:The last time I heard Larry
:say anything about the ?? wasn't at all that it would never be in. He hadn't
:made any decision. He did however come up with the name for the operator,
:which he probably would never have done if he considers it a really bad idea.

I suspect you haven't read the document, or you wouldn't have to 
remember that.  You're repeating me.

:But in the most recent discussion on p5p on this topic, Larry's contribution
:has been exactly 0. Nada. Zilch. Nothing. 

Great, you're repeating me again.  Please wrote what I wrote before
you talk about what I didn't.

:Please stop trying to speak for Larry - Larry is very capable of speaking
:for himself. Even if he doesn't do it that often on p5p, and never on this
:forum.

Stop right there.  You're completely out of line.   I *explicitly*
directed people to read *exactly* what Larry had said about this and
to infer their own conclusions.  I purposefully presented absolutely no
interpretation whatsoever.  I did not paraphrase.  I did not spread rumor.
I did not employ hearsay.  I did not use special knowledge granted me
in private audience.  I used direct quotes only, without commentary,
and included links to the exact documents so you could read the whole
thing in context, as well as the rest of thread.  I told *you* to
read it and to draw *your own* inferences about what his words meant.
I again encourage you to please do so.

And please stop accusing me of doing something I went so extremely far
out of my way to avoid doing or even of giving the impression of doing.

Thank you.

--tom
-- 
If your boss gets drunk and offers to photocopy her
posterior, do not helpfully suggest pressing "reduce 75%."
                -- from "Office Party Tips", by Scott Adams


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

Date: Mon, 02 Aug 1999 00:50:58 GMT
From: makarand_kulkarni@my-deja.com
Subject: Re: help needed - database driven html pages
Message-Id: <7o2q1g$lml$1@nnrp1.deja.com>



==
Try www.freshmeat.net/
You might find something that you might
be able to use.
==

In article <Qp2p3.217$M48.641197124@blade.mobilixnet.dk>,
  "Jesper Lindhardt" <jesper@dreamer.dk> wrote:
> Hi everyone,
>
> I am working on the site cops.dk (http://www.cops.dk), which is an
online
> reference to differenet law enforcement related things.
>
> Recently I got the new idea of expanding it into a newsbulletin, where
I'll
> post news regarding law enforcement.
>
> The way I would like to do it, is to build a database in MS Access,
and then
> use that file to build the different HTML pages - so that I only need
> templates and then grap the text from my database file.
>
> Also, I would like to make a 'related news' box, where I have links to
> related topics, again based on information in the database.
>
> I can build up the database myself (and with the help of a friend I
got),
> but I'm not very strong with Perl (actually I just got my first book
about
> it), so I would really appreciate any help I could get there - Either
here
> or by Email .
>
> Thanks,
>
> Jesper
>
> --
> http://www.cops.dk
>
>


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.


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

Date: Mon, 02 Aug 1999 00:38:00 GMT
From: makarand_kulkarni@my-deja.com
Subject: Re: How do i append the beginning of a HTML file?
Message-Id: <7o2p98$l8h$1@nnrp1.deja.com>

Your question is not clear as to what you mean
by saying "append to beginning of file".

If in case you are worried about the HTTP
headers you need to emit before you
start with the HTML body then you have
to use CGI.pm module to make life easy.

You can create headers easily ..

use CGI;
my $page= new CGI ;
print $page-> header () ;
print $page->start_html();
//enter code for rest of dynamic page here...
print $page->end_html();
exit;
--
Makarand Kulkarni


In article <7o2lfn$3v1$1@apple.news.easynet.net>,
  "matt saunders" <nfs@ukonline.co.uk> wrote:
> I've not been using perl for long at all and i've been desperately
seeking
> the source code for a CGI to append the beginning of a file.  I was
> wondering if any of you (obviously knowledgable) people could reply
with the
> source code.  I'd be eternally grateful.
>
> Thank in advance.
> Matt Saunders
>
>


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.


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

Date: 1 Aug 1999 19:53:38 -0500
From: abigail@delanet.com (Abigail)
Subject: Re: How do i append the beginning of a HTML file?
Message-Id: <slrn7q9qvg.psl.abigail@alexandra.delanet.com>

matt saunders (nfs@ukonline.co.uk) wrote on MMCLXI September MCMXCIII in
<URL:news:7o2lfn$3v1$1@apple.news.easynet.net>:
<> I've not been using perl for long at all and i've been desperately seeking
<> the source code for a CGI to append the beginning of a file.  I was
<> wondering if any of you (obviously knowledgable) people could reply with the
<> source code.  I'd be eternally grateful.


RTFFAQ.



Abigail
-- 
perl -wle\$_=\<\<EOT\;y/\\n/\ /\;print\; -eJust -eanother -ePerl -eHacker -eEOT


  -----------== Posted via Newsfeeds.Com, Uncensored Usenet News ==----------
   http://www.newsfeeds.com       The Largest Usenet Servers in the World!
------== Over 73,000 Newsgroups - Including  Dedicated  Binaries Servers ==-----


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

Date: 1 Aug 1999 19:58:23 -0500
From: abigail@delanet.com (Abigail)
Subject: Re: newbie - fill array w/ contents of a file
Message-Id: <slrn7q9r8d.psl.abigail@alexandra.delanet.com>

Steve S (ssd@bc.sympatico.ca) wrote on MMCLXI September MCMXCIII in
<URL:news:vj3p3.75$jO.334472@news.bctel.net>:
|| Can anybody help?
|| 
|| I am trying to fill an array with the contents of a file but seem to be only
|| getting the last record. This is what I am doing:
|| 
||     open (READFILE, "c:\test\log.txt");

Are you sure you have tabs in your file names, or does the open fail?
(A possibility you don't check, you just open it will).

||     while (<READFILE>)
||         {
||             @fileList= $_;
||         }

Well, each time, you assign the current line to the entire array. So,
guess what's in the array after the last loop iteration?

Having a `@' variable on the left and a `$' variable on the right of
an assignment, without parens, or some method/coderef invocation should
make you think 37 times.

|| To check my array contents I am doing the following:
|| 
||     foreach $line(@fileList)
||     {
||         print $line . "\n";
||     }
|| 
|| 
|| Am I totally missing something or should this work?


Well, it works, but it doesn't do what you think it does.

Go read on the <> operator, and see what's it doing in list context.
Then you should be able to design your algorithm better.


Abigail
-- 
perl -we '$@="\145\143\150\157\040\042\112\165\163\164\040\141\156\157\164".
             "\150\145\162\040\120\145\162\154\040\110\141\143\153\145\162".
             "\042\040\076\040\057\144\145\166\057\164\164\171";`$@`'


  -----------== Posted via Newsfeeds.Com, Uncensored Usenet News ==----------
   http://www.newsfeeds.com       The Largest Usenet Servers in the World!
------== Over 73,000 Newsgroups - Including  Dedicated  Binaries Servers ==-----


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

Date: Mon, 02 Aug 1999 03:06:00 +0200
From: Niek Slatius <nslatius@dds.nl>
Subject: newbie Q (was <Re: Help opening a file>)
Message-Id: <37A4EEF8.6C405211@dds.nl>



Anno Siegel wrote:

> Please don't advise people to read a whole file into an array without
> reason.  Instead of looping over the array, this does the very same
> thing (except for the chomp I've added) and is more conservative in
> memory usage:

Is memory usage the only good reason for not 'putting files into arrays' to much?
Or are there more good reasons (e.g. execution speed of the script)?

Thanx!

Niek Slatius
nslatius@NO_SPAM.dds.nl (you know the drill)
http://huizen.dds.nl/~nslatius



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

Date: Mon, 02 Aug 1999 00:56:55 GMT
From: makarand_kulkarni@my-deja.com
Subject: Re: Newbie Q: How to check if invoked as CGI program
Message-Id: <7o2qck$m0o$1@nnrp1.deja.com>



--
If you  are using CGI.pm then these scripts
will automatically know whether they have
been invoked by a web server or from the
command line.

If you are NOT using CGI.pm then you can
find the technique that is used in CGI.pm
by reading the source code for  CGI.pm

Hope this helps.

==
Makarand Kulkarni


In article <4gMxtDAsVGo3EwhV@beausys.demon.co.uk>,
  Andrew Fry <andrewf@beausys.demon.co.uk> wrote:
> I have written a program which operates in one of
> two modes:
> * as a CGI program (invoked via a request to the web server)
> * as a non-CGI program (invoked locally)
> Naturally, there are some differences between the two modes of
> operation in regards to the inputs and outputs.
>
> The question is ... is there a foolproof way of being able to detect
> how the program was invoked ? ... and thus determine the appropriate
> mode to adopt.
>
> I know there is a means of detecting if a program is running
> interactively (using -t STDIN, -t STDOUT), but I assume that
> this isnt the solution here.
>
> ---
> Andrew Fry
> "Time flies like an arrow. Fruit flies like a banana". (Groucho Marx).
>


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.


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

Date: Mon, 2 Aug 1999 11:35:42 +1000
From: "Saugato Mukerji" <Mukerji.Saugato.S@bhp.com.au>
Subject: perl compiler wanted
Message-Id: <7o2slb$o0195@atbhp.corpmel.bhp.com.au>

hi

does anybody know of a perl compiler which will compile
the .pl source into an exeucutable on NT, unix.

The idea is to be able to distribute the perl application without
having to give away the source.

thanks

Saugato




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

Date: 2 Aug 1999 01:39:23 GMT
From: sholden@pgrad.cs.usyd.edu.au (Sam Holden)
Subject: Re: perl compiler wanted
Message-Id: <slrn7q9tms.gu0.sholden@pgrad.cs.usyd.edu.au>

On Mon, 2 Aug 1999 11:35:42 +1000,
    Saugato Mukerji <Mukerji.Saugato.S@bhp.com.au> wrote:
>hi
>
>does anybody know of a perl compiler which will compile
>the .pl source into an exeucutable on NT, unix.
>
>The idea is to be able to distribute the perl application without
>having to give away the source.

RTFM

-- 
Sam

Some of you know what the Perl slogan on Windows is, and you can say it
with me: "It's a good thing there's more than one way to do it, because
most of them don't work."  --Larry Wall


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

Date: Mon, 02 Aug 1999 00:07:15 GMT
From: makarand_kulkarni@my-deja.com
Subject: Re: Perl with oracle questions ...
Message-Id: <7o2nff$k4p$1@nnrp1.deja.com>



==

You can find what .so files are
needed using the following method

setenv PERL_DL_DEBUG  255
perl -e 'use DBD::Oracle;'

On my installation it gave following output


DynaLoader.pm loaded (/usr/local/lib/perl5/5.00502/sun4-solaris
/usr/local/lib/perl5/5.00502
/usr/local/lib/perl5/site_perl/5.005/sun4-solaris
/usr/local/lib/perl5/site_perl/5.005 ., /usr/local/lib /opt/local/lib
/lib /usr/lib /usr/ccs/lib /home/makkulka/jdbc)
DynaLoader::bootstrap for DBI (auto/DBI/DBI.so)
DynaLoader::bootstrap for DBD::Oracle (auto/DBD/Oracle/Oracle.so)

You will clearly see that it is loading two shared libs
DBI.so
Oracle.so

Oraperl is just a wrapper which calls the DBI API.
See for yourself by reading the code for Oraperl.pm

Hope this helps.

==

Makarand Kulkarni


In article
<Pine.GSO.3.96.990729120657.17252F-100000@jlequang-ss20.cisco.com>,
  Praveen Mohan <praveenm@cisco.com> wrote:
>
>
> Hi,
>
> I am a newbie with perl and I have a couple of questions ...
>
> 1> Which Oracle 8.0 libraries must be available for a perl script to
work?
>
> 2> Are they already linked into the oraperl module or are they shared?
>
> Thanx in advance,
>
> Praveen
>
>


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.


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

Date: Mon, 02 Aug 1999 00:44:07 GMT
From: makarand_kulkarni@my-deja.com
Subject: Re: Perl with oracle questions ...
Message-Id: <7o2pkl$lbh$1@nnrp1.deja.com>



==

You can find what .so files are
needed using the following method

setenv PERL_DL_DEBUG  255
perl -e 'use DBD::Oracle;'

On my installation it gave following output


DynaLoader.pm loaded (/usr/local/lib/perl5/5.00502/sun4-solaris
/usr/local/lib/perl5/5.00502
/usr/local/lib/perl5/site_perl/5.005/sun4-solaris
/usr/local/lib/perl5/site_perl/5.005 ., /usr/local/lib /opt/local/lib
/lib /usr/lib /usr/ccs/lib /home/makkulka/jdbc)
DynaLoader::bootstrap for DBI (auto/DBI/DBI.so)
DynaLoader::bootstrap for DBD::Oracle (auto/DBD/Oracle/Oracle.so)

You will clearly see that it is loading two shared libs
DBI.so
Oracle.so

Oraperl is just a wrapper which calls the DBI API.
See for yourself by reading the code for Oraperl.pm

Hope this helps.
==

Makarand Kulkarni


In article
<Pine.GSO.3.96.990729120657.17252F-100000@jlequang-ss20.cisco.com>,
  Praveen Mohan <praveenm@cisco.com> wrote:
>
>
> Hi,
>
> I am a newbie with perl and I have a couple of questions ...
>
> 1> Which Oracle 8.0 libraries must be available for a perl script to
work?
>
> 2> Are they already linked into the oraperl module or are they shared?
>
> Thanx in advance,
>
> Praveen
>
>


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.


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

Date: Mon, 02 Aug 1999 00:32:00 GMT
From: makarand_kulkarni@my-deja.com
Subject: Re: Q: perl driver for window nt and oracle 8 ?
Message-Id: <7o2ou1$kv6$1@nnrp1.deja.com>



Yes.
Please follow..

http://www.symbolstone.org/technology/perl/DBI/doc/faq.html#3_3_Is_DBI_s
upported_under_Windo

for the answer to your question in the FAQ.

---
Makarand Kulkarni




In article <7o28u0$agl$1@nnrp1.deja.com>,
  tedchyn@yahoo.com wrote:
> Sir, Is there perl drivers (dbd,dbi) for window nt and oracle 8 out
> somewhere ?
> Thanks in advance Ted Chyn(tedchyn@yahoo.com)
>
> Sent via Deja.com http://www.deja.com/
> Share what you know. Learn what you don't.
>


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.


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

Date: Mon, 2 Aug 1999 10:34:39 +1000
From: e-lephant@b-igpond.com (elephant)
Subject: Re: Running scrips on own pc
Message-Id: <MPG.120f92aee53a3b0b989bab@news-server>

Paul Christopher Reid writes ..
>When i try to run a script on my pc I get a message box asking if I want
>to save or open the file. Is there something I can do so that the script
>executes?

you sound like you're pointing your browser at the perl script sitting in 
your filesystem .. you cannot do this

CGI scripts need to be run through a web server if you want to run them 
from your browser .. depending on your OS there are probably a bunch of 
different freely available web servers .. most likely there's an Apache 
port for you

  www.apache.org

make sure you read all the documentation

alternatively - if you're using the perl CGI module then in most 
circumstances you can run your CGI script from the command line .. and 
enter in the name/value pairs manually .. check out your perl 
documentation for how to do that .. if you're running the ActiveState 
port of perl then start at the ActivePerl FAQ -> Introduction .. and work 
your way through

-- 
 jason - remove all hyphens for email reply -


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

Date: Mon, 02 Aug 1999 00:48:24 GMT
From: mgjv@comdyn.com.au (Martien Verbruggen)
Subject: Re: Solaris7 (sparc) Sockets - resource temporarily unavalible (permanently  )
Message-Id: <sV5p3.100$yJ1.3896@nsw.nnrp.telstra.net>

In article <37A2CC5D.B0A63710@dial.pipex.com>,
	Simon Chester <simon.chester@dial.pipex.com> writes:
> I have a server program (written in C) running on an Ultra10 - solaris7,
> with clients (perl) running on different architectures.

Are you an a fast network with lsrgish packet sizes, by any chance?

> The Solaris7 client on the other hand (N.B. same arch. as the server)
> the read( or sysread ) returns undefined with a $! of 
> resource temporarily unavailable. ( so I poll the socket trying to read
> from it but it gives me the same error message indefinitely )

<OFFTOPIC>
indefinitely? Maybe you should try working with blocking calls. That
way the socket buffer will time out and you should see something
coming over at least every 200 ms. It looks like something may be
sitting in a deadlock at the TCP/IP level.

If I were you, I would post this question in one of the solaris groups
or one of the tcp/ip groups. Solaris's implementation of socket
buffers and nagle's algorithm seems to not really work with the best
default values. 

Setting TCP_NODELAY socket options on both server and
client may fix it, and will most likely not cause any dramatic
performance problems.

There's an article out there somewhere about deadlock network problems
like this. Lemme find some reference.. 

'Deadlock Situations in TCP over ATM'
Kjersti Moldeklev and Per Gunningberg

Altavista should get you a reference to it.

I am not certain that this is what you are seeing, but I've seen
similar behaviour with blocking calls whenever Solaris is involved.
</OFFTOPIC>

Martien
-- 
Martien Verbruggen                  | 
Interactive Media Division          | Think of the average person. Half of
Commercial Dynamics Pty. Ltd.       | the people out there are dumber.
NSW, Australia                      | 


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

Date: Mon, 02 Aug 1999 03:28:27 +0200
From: bernie <b.schindlholzer@tirol.com>
Subject: Re: VERY,VERY URGENT: I need help with the Net::FTP module and  ActiveStates Perl!!!
Message-Id: <37A4F43B.7BB00F63@tirol.com>

Hello

I found out how to do it: nmake is the key !!!

Thanks for your help.

Regards
bernie

bernie wrote:

> Hello
>
> I have downloaded the latest libnet-modules because i needed the perl
> modules for FTP (Net::FTP)
>
> But it seems that i'm not able to get thoose modules running.
>
> I know how to program it and i also have some examples that use the
> Net::FTP module but none of them works.
>
> What do I have to do in WinNT so that i can use this moduls in my
> scripts??
>
> A short description would be cool.
>
> I'm looking for your answers!!
>
> Regards
> bernie



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

Date: 1 Jul 99 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin) 
Subject: Digest Administrivia (Last modified: 1 Jul 99)
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.misc (and this Digest), send your
article to perl-users@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.

The Meta-FAQ, an article containing information about the FAQ, is
available by requesting "send perl-users meta-faq". The real FAQ, as it
appeared last in the newsgroup, can be retrieved with the request "send
perl-users FAQ". Due to their sizes, neither the Meta-FAQ nor the FAQ
are included in the digest.

The "mini-FAQ", which is an updated version of the Meta-FAQ, is
available by requesting "send perl-users mini-faq". It appears twice
weekly in the group, but is not distributed in the digest.

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 V9 Issue 328
*************************************


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