[9879] in Perl-Users-Digest
Perl-Users Digest, Issue: 3472 Volume: 8
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Tue Aug 18 05:07:21 1998
Date: Tue, 18 Aug 98 02:00:27 -0700
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Perl-Users Digest Tue, 18 Aug 1998 Volume: 8 Number: 3472
Today's topics:
Re: comp.lang.perl.newbie (Andrew M. Langmead)
Re: Converting to lowecase (Ronald J Kimball)
Re: Converting to lowecase (Craig Berry)
Re: Easy one for you. (Craig Berry)
Re: Easy one for you. (Craig Berry)
Re: help with reading a file to browser <nobody@nowhere.com>
How do I execute perl from html program <arm@home.net>
Re: How do I execute perl from html program <nguyend7@msu.edu>
Re: How do I execute perl from html program (Jon Bell)
Re: I don't know a mean of script. <nguyend7@msu.edu>
Re: Informix ONL 5.0 / ESQL 4.10.U and PERL 5.00404 <kwall@p266.slkc.uswest.net>
modules <crontab@pixelperfect.org>
Re: newbie question <nguyend7@msu.edu>
Re: Perl Docs.. forget the original post (C. Abney)
Perl scripts <cogelog@wanadoo.fr>
Perl version <cogelog@wanadoo.fr>
Re: Perl version (Craig Berry)
Re: Q: How to read all the file name in a directory <ljz@asfast.com>
Re: Random Number (Georg Bauer)
Re: Recommend a good editor <nobody@nowhere.com>
Re: Recommend a good editor <koos_pol@nl.compuware.com>
Socket buffering problem <chlow@crtc.corp.mot.com>
Re: Splitting numbers? (Ronald J Kimball)
Sybperl vs web.sql etmgero@my-dejanews.com
Re: Sybperl vs web.sql (Michael Fuhr)
test post z -- please ignore (Steven Barbash)
Re: unpack question b_redeker@hotmail.com
Re: Why dont people read the FAQs <asteindl@mch2pc21.tuwien.ac.at>
Re: Win32::Console For Password Entry <fecund@fatnet.net>
Special: Digest Administrivia (Last modified: 12 Mar 98 (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Tue, 18 Aug 1998 04:19:22 GMT
From: aml@world.std.com (Andrew M. Langmead)
Subject: Re: comp.lang.perl.newbie
Message-Id: <ExvAoA.4nn@world.std.com>
"Sabre Taylor" <nonspammers.start.after.this.period.hot_redox@hotmail.com> writes:
[on the suggestion comp.lang.perl.newbies]
>I think such a group would be worthwhile. The learning process is such
>that human interaction is of great help especially during the initial
>stages.
>Not all newbies are callously selfish and I'm sure some are refraining
>from asking basic questions that they're having genuine difficulty with.
When you have novices answering other novices questions, you are going
to get a lot of disinformation distributed. Especially with a language
like Perl where there is more than one way of performing a particular
task. (but not all of them are the right one.), that has so many DWIM
shortcuts (but the chances of it being "what you mean" depends on how
much your programming background matches Perl's authors), and gives
you enough rope to bury yourself. And if that doesn't make things bad
enough, Perl's long gradual learning curve may give overconfidence to
many novices who will give responses once they think they know the
answer, (which may be long before they know enough so that they really
do.)
Its been a long time since I read comp.lang.c, but when I did, there
was a big problem with wrong answers to questions. (and then wrong
corrections to the wrong answers, and then wrong corrections to the
corrections, etc.) In comp.lang.perl, this was less of a problem
because there were a few kind experts who would stop incorrect threads
cold with an article filled with hard facts.
I can't see how a newsgroup without a regular group of experts can
function.
--
Andrew Langmead
------------------------------
Date: Tue, 18 Aug 1998 01:15:57 -0400
From: rjk@coos.dartmouth.edu (Ronald J Kimball)
Subject: Re: Converting to lowecase
Message-Id: <1ddxm0i.nxthqoju5944N@bay1-100.quincy.ziplink.net>
Grant Griffin <grant.griffin@nospam.com> wrote:
> There once was a park [...]
Hey, forget this stupid park, who wants to go to the beach?
;-)
--
_ / ' _ / - aka - rjk@coos.dartmouth.edu
( /)//)//)(//)/( Ronald J Kimball chipmunk@m-net.arbornet.org
/ http://www.ziplink.net/~rjk/
"It's funny 'cause it's true ... and vice versa."
------------------------------
Date: 18 Aug 1998 05:25:48 GMT
From: cberry@cinenet.net (Craig Berry)
Subject: Re: Converting to lowecase
Message-Id: <6rb38s$m8o$1@marina.cinenet.net>
Ronald J Kimball (rjk@coos.dartmouth.edu) wrote:
: Grant Griffin <grant.griffin@nospam.com> wrote:
:
: > There once was a park [...]
:
: Hey, forget this stupid park, who wants to go to the beach?
NOOOOOOOoooooooooooOOOOOOOOOOOoooooooo!
(I've always wondered if the play on 'The Old Man and the Sea' was
intentional, btw. If so, interesting implications...)
---------------------------------------------------------------------
| Craig Berry - cberry@cinenet.net
--*-- Home Page: http://www.cinenet.net/users/cberry/home.html
| Member of The HTML Writers Guild: http://www.hwg.org/
"Every man and every woman is a star."
------------------------------
Date: 18 Aug 1998 05:32:08 GMT
From: cberry@cinenet.net (Craig Berry)
Subject: Re: Easy one for you.
Message-Id: <6rb3ko$m8o$2@marina.cinenet.net>
Jonathan M. Hartman (cajun@expert.cc.purdue.edu) wrote:
: OK. I'll admit it. I'm a newbie at this. I am trying to parse out a string
: that has pipes seperating the values. I'd like to just load them into an
: array, but I can't figure out the proper syntax for the split function...
: The string I am trying to parse looks like the following:
:
: 2|WARNINGS|WARNINGS|1600034|sunthu4|arbctprd
:
: How can I do this? I have several of these that I am reading from a file,
: and want to use a foreach loop to deal with each of them in turn.
You'll get more enthusiastic help if you show us your code that's not
doing this, or describe what part of the split documentation doesn't make
sense to you. Wild guess: | is special in a regex, so you'll need to
escape it to match it literally.
---------------------------------------------------------------------
| Craig Berry - cberry@cinenet.net
--*-- Home Page: http://www.cinenet.net/users/cberry/home.html
| Member of The HTML Writers Guild: http://www.hwg.org/
"Every man and every woman is a star."
------------------------------
Date: 18 Aug 1998 05:36:53 GMT
From: cberry@cinenet.net (Craig Berry)
Subject: Re: Easy one for you.
Message-Id: <6rb3tl$m8o$3@marina.cinenet.net>
Kelly Hirano (hirano@Xenon.Stanford.EDU) wrote:
: geez, there was just another thread about how to split a comma-delimited
: string...
:
: man perl
: perldoc -f split
:
: my $line = qq!2|WARNINGS|WARNINGS|1600034|sunthu4|arbctprd!;
: my @array = split(/|/, $line);
Unlike the above, the thread covering comma-delimitted lists provided a
correct solution, however. Doing
print scalar @array;
following your code above yields 44, while there seem to be less than 44
pipe-delimitted fields in your line. There are, oddly enough, 44
*characters*, though. Coincidence? You be the judge. :)
---------------------------------------------------------------------
| Craig Berry - cberry@cinenet.net
--*-- Home Page: http://www.cinenet.net/users/cberry/home.html
| Member of The HTML Writers Guild: http://www.hwg.org/
"Every man and every woman is a star."
------------------------------
Date: Tue, 18 Aug 1998 16:40:33 +1000
From: Allan Chandler <nobody@nowhere.com>
Subject: Re: help with reading a file to browser
Message-Id: <35D921E1.DC85347E@nowhere.com>
Finn Calabro wrote:
>
> I'm trying something very simple, yet I'm too dumb to get it to work.
> I'd appreciate any help.
Self-abuse won't help much.
>
> I have a script to read an ascii file and print it to the browser.
> Right now it works fine when run from the command prompt through telnet,
> but when run in the browser nothing comes up (the html tags do, but
> nothing from the document being read).
>
> #!/usr/local/bin/perl
> print "Content-type: text/html\r\n"; # The first line must specify
> content type
> print "\r\n"; # A blank line ends the headers
This is so beautiful I want to cry - so often I see people flouting the
standard by not including the CR character.
[snip]
> @data = <FILE>;
> print @data;
Oooohh! Expensive on memory if it's a big file (which it probably isn't
if it's going in to a web page. Your second solution below might be
better.
> print "</pre></body></html>";
>
> I also tried:
> #!/usr/local/bin/perl
> print "Content-type: text/html\r\n"; # The first line must specify
> content type
> print "\r\n"; # A blank line ends the headers
>
> print "<html><head></head><body><pre>";
>
> open(FILE,"toc.txt");
> while (<FILE>) {
> print <FILE>;
> }
> print "</pre></body></html>";
Not sure of the top of my head whether you'll only get every second
line here. Your print should be just that - "print;" or "print $_;" for
the anally-retentive.
In either case, I'd be looking at the file location of toc.txt as the
prime candidate for your problem here. Do you know what directory the
browser is in when it runs your script? It may not be the same
directory that you run it manually from. The (more kosher) "open
(FILE,"toc.txt") || <generate html page with $! here>" might help. Or
try hard-coding your full path-name as a temp solution (this is unwise
in production pages).
Hope this helps,
AC
==========================================================
==========================================================
------------------------------
Date: Tue, 18 Aug 1998 04:18:26 GMT
From: Alan Melton <arm@home.net>
Subject: How do I execute perl from html program
Message-Id: <35D8FF58.A7BCE400@home.net>
I have a perl program example.pl
that begins
#!/usr/bin/perl
etc
etc
etc
and the only way I have been able to run
it is from telnet and typing perl example.pl
How can I run the program from the web?
either straight or as an html?
Alan Melton
------------------------------
Date: 18 Aug 1998 04:42:52 GMT
From: Dan Nguyen <nguyend7@msu.edu>
Subject: Re: How do I execute perl from html program
Message-Id: <6rb0oc$h22$2@msunews.cl.msu.edu>
Alan Melton <arm@home.net> wrote:
: I have a perl program example.pl
: that begins
: #!/usr/bin/perl
Is that were perl actually is?
Try `which perl` or `where perl`
: and the only way I have been able to run
: it is from telnet and typing perl example.pl
Did you chmod it?
Try `chmod 0755 example.pl` also read the manpage for chmod
: How can I run the program from the web?
It must be in a cgi-bin, the server configuration determines if
CGI-scripts (written in perl in your case) if you can execute them.
check with the sysadmin.
: either straight or as an html?
NO. you usaully have 2 choices, SSI (Server side include) or run the
script itself. Check the server config to see what you can and can't
do.
-dan
--
Dan Nguyen | There is only one happiness in
nguyend7@msu.edu | life, to love and be loved.
http://www.cse.msu.edu/~nguyend7 | -George Sand
------------------------------
Date: Tue, 18 Aug 1998 05:06:37 GMT
From: jtbell@presby.edu (Jon Bell)
Subject: Re: How do I execute perl from html program
Message-Id: <ExvCv1.IB5@presby.edu>
In article <35D8FF58.A7BCE400@home.net>, Alan Melton <arm@home.net> wrote:
>I have a perl program example.pl
[snip]
>How can I run the program from the web?
>either straight or as an html?
The same way you run a program written in any other language (in other
words, this isn't a Perl question). You need to learn about CGI, for
which the appropriate newsgroup is comp.infosystems.www.authoring.cgi
(make sure you read the FAQs before you post!)
--
Jon Bell <jtbell@presby.edu>
------------------------------
Date: 18 Aug 1998 04:35:44 GMT
From: Dan Nguyen <nguyend7@msu.edu>
Subject: Re: I don't know a mean of script.
Message-Id: <6rb0b0$h22$1@msunews.cl.msu.edu>
Cabin Drop <iychung@kaebi.com> wrote:
: -----------------------
: require LWP::UserAgent; (g
: require HTTP::Request; (h
Try `perldoc -f require`
: require "$s[$i[0]].pm"; >
: # srand (time() ^ ($$ + ($$ << 15))); (i
These lines have been commented out.
: # while($c<$n) {
: # &random;
: # $c++;
: # }
: #print "<"; (j
Still a comment
: #print "<";
: #print "<";
: #print "<";
: #print "<>\n";
: package XXX;
: $ua->agent("Mozilla/4.04 (X11; I; NetBSD 1.3 i386; Nav)"); (k
try `perldoc LWP`
: 1; (l
try `man perlmod`
: ----------------
: I can't run this CGI on perl. I don't understand Numbered Line.
: Please help me.
This is all the help I'm willing to give. Try reading the
documentation. That's what it is there for.
BTW. CGI is not what you think it is. It is a way for Perl and any
other programming or scripting language to communcaite information.
Anyways, your code is not a perl script. It appears to be a perl
module.
-dan
--
Dan Nguyen | There is only one happiness in
nguyend7@msu.edu | life, to love and be loved.
http://www.cse.msu.edu/~nguyend7 | -George Sand
------------------------------
Date: 18 Aug 1998 00:52:14 +0500
From: Kurt Wall <kwall@p266.slkc.uswest.net>
Subject: Re: Informix ONL 5.0 / ESQL 4.10.U and PERL 5.00404
Message-Id: <35d9168e.0@news2.uswest.net>
In comp.databases.informix Rich Sy <Richmont.Sy@exchange.sms.siemens.com> wrote:
% We have informix online 5.0 and esqlc 4.10.U. We want to use perl
% 5.00404 to interface with informix. So far we've not found any
% available perl interface to informix that can make use of what we
% currently have. I thought I've found something with the older 'isqlperl'
% but it only compiles with perl 4.
If I understand your question correctly, you might want to have a look
at DBD::Informix.
[snip]
Kurt
--
Hmmmm, what would a *smart* person do?
------------------------------
Date: Tue, 18 Aug 1998 05:46:00 GMT
From: Dave Mckeown <crontab@pixelperfect.org>
Subject: modules
Message-Id: <35D91625.1D1D6601@pixelperfect.org>
is there a telnet command of perl script which will give me a list of
modules installedd on the server?
--
Icq# 14056739
mailto:dmckeown@istar.ca
------------------------------
Date: Tue, 18 Aug 1998 01:38:49 -0400
From: Dan Nguyen <nguyend7@msu.edu>
Subject: Re: newbie question
Message-Id: <35D91369.6164D10A@msu.edu>
Try looking at split
Something like
@token = split /,/, @input_line;
hope that helps.
-dan
SDunkin@oxfordinc.com wrote:
> Greetings, I'm trying to break a comma separated file into columns. Because I
> am just starting to learn perl, I am encountering some difficulty. Can
> someone point me in the right direction on how to do this?
>
> My input file will look like this:
> 123,name,name2,1
> 456,name3,name27,2
>
> and I need the output to look like this:
> 123 name name2 1
> 456 name3 name27 2
------------------------------
Date: 18 Aug 1998 05:25:58 GMT
From: cabneySP4M@SP4M.SP4Mcyberpass.net (C. Abney)
Subject: Re: Perl Docs.. forget the original post
Message-Id: <6rb396$ord$1@news.infonex.net>
In article <35CFACAE.86EC7B4E@spider.herston.uq.edu.au>,
Jaime Metcher <metcher@spider.herston.uq.edu.au> writes:
[ where FAQless posters should have looked before posting, but
didn't, and weighting the resulting flamage ]
> 1. The camel book (fair enough).
> 2. Not in the camel book, but in perlre (still fair enough).
> 3. Not in either the camel or perlre (where they thought it would be)
> but in perlop (yeah, OK, they should have grepped).
> 4. In neither the camel, perlre or perlop, but somewhere in one the the
> many parts of the FAQ list (ditto, but I'd be giving points for trying).
> 5. In none of the above, but answered on this ng and therefore in
> DejaNews (fatigue allowance here, especially for newcomers).
Speaking as a newbie to clpm, the not so gentle remonstrations in this
group are where I first learned of the perl faqs. I went to CPAN, then
discovered them on my harddrive (they are kind of hidden away). These
are really nice! They should go in /usr/doc.
Speaking as someone who tries to help out in c.o.l.m. I have to say the
noise level here is far lower than what I'm used to, and am truly
impressed by the sound advice posted here. If arrogance and conceit can
be good qualities, that has certainly been shown in clpm! Not that
any one of you has these character qualities, of course. :)
I might even be tempted to try it in colm. (Every question has an
answer, every FAQ gets a RTFM)
What does make me wonder, though, is why a FAQless newbie's squeals
aren't simply ignored?
-C
--
...if we truly desire world domination, we've got to get our LSD into
the corporate elite's conceptual water supply and alter the beast's
consciousness. -ESR C. Abney
------------------------------
Date: Tue, 18 Aug 1998 09:38:17 +0200
From: Ferdi <cogelog@wanadoo.fr>
Subject: Perl scripts
Message-Id: <35D92F69.8B319511@wanadoo.fr>
Do you know where can I find some freeware script?
I'm looking for some scripts to build a newsgroup.
Thanks
Ferdi
------------------------------
Date: Tue, 18 Aug 1998 09:44:21 +0200
From: Ferdi <cogelog@wanadoo.fr>
Subject: Perl version
Message-Id: <35D930D5.5BC70783@wanadoo.fr>
I don't know exactly my Perl version. Where can I find it?
------------------------------
Date: 18 Aug 1998 06:53:52 GMT
From: cberry@cinenet.net (Craig Berry)
Subject: Re: Perl version
Message-Id: <6rb8e0$m8o$4@marina.cinenet.net>
Ferdi (cogelog@wanadoo.fr) wrote:
: I don't know exactly my Perl version. Where can I find it?
>From the shell: perl -v (see perlrun)
>From a script: $] (see perlvar)
---------------------------------------------------------------------
| Craig Berry - cberry@cinenet.net
--*-- Home Page: http://www.cinenet.net/users/cberry/home.html
| Member of The HTML Writers Guild: http://www.hwg.org/
"Every man and every woman is a star."
------------------------------
Date: 18 Aug 1998 01:02:50 -0400
From: Lloyd Zusman <ljz@asfast.com>
Subject: Re: Q: How to read all the file name in a directory
Message-Id: <ltbtpi991h.fsf@asfast.com>
fl_aggie@thepentagon.com (I R A Aggie) writes:
> In article <ltiujsbml2.fsf@asfast.com>, Lloyd Zusman <ljz@asfast.com> wrote:
>
> + fl_aggie@thepentagon.com (I R A Aggie) writes:
> + > Ummm...if sarcasm where posted to the net, would anyone notice?
>
> + Perhaps I erred in my reasoning.
>
> Well, yes. My reasoning goes thusly:
>
> 1. the previous poster's claim was that it's rude to hurt someone's feelings
> 2. the previous poster claims he will begin to scorn TomC with silence
>
> Ergo, the previous poster is being rude, and is engaging in the same
> behaviour that he decries.
That's quite straightforward. Where's the sarcasm you referred to?
> So, Lloyd, how's the Perl Helpdesk going?
I don't recall ever discussing a Perl Helpdesk. Perhaps you have
someone else's post(s) mixed up with mine?
And in case there is still some confusion, I consider there to be a
big difference between using courtesy when referring "newbies" to the
FAQ's and doc's (which I'm in favor of) and in turning c.l.p.misc into
a "Perl Helpdesk" (which I am not particularly keen on and have never
advocated).
--
Lloyd Zusman ljz@asfast.com
perl -e '$n=170;for($d=2;($d*$d)<=$n;$d+=(1+($d%2))){for($t=0;($n%$d)==0;
$t++){$n=int($n/$d);}while($t-->0){push(@r,$d);}}if($n>1){push(@r,$n);}
$x=0;map{$x+=(($_>0)?(1<<log($_-0.5)/log(2.0)+1):1)}@r;print"$x\n"'
------------------------------
Date: Mon, 17 Aug 1998 19:58:31 GMT
From: gb@hugo.westfalen.de (Georg Bauer)
Subject: Re: Random Number
Message-Id: <gb-1708982158310001@jill.westfalen.de>
In article <35D86952.C43DE25C@nospam.com>, Grant Griffin
<grant.griffin@nospam.com> wrote:
>Windows comes with nothing like
>"grep".
You have perl. grep is built in into perl. Oh, and the Windows 95 search
dialog can scan file content, too. Ok, not a grep, but searching for
"random" on your harddisc is quite easy .
bye, Georg
--
http://www.westfalen.de/hugo/
------------------------------
Date: Tue, 18 Aug 1998 16:13:20 +1000
From: Allan Chandler <nobody@nowhere.com>
Subject: Re: Recommend a good editor
Message-Id: <35D91B80.D8FB723D@nowhere.com>
Tom Christiansen wrote:
> In comp.lang.perl.misc, "Steve Bohler" <skbohler@sprynet.com> writes:
> :I've searched through previous posts, but am not finding a recommendation
> :for an easy-to-use Perl editor that runs on Windows. I've used emacs
> :before, but was wondering if there was something better.
You probably won't find anything 'better' than emacs since it's
everything you need in a editor/wordprocessor/newsreader/psychoanalyst.
I'm not sure how cut-down the versions would have to be to run under
Windows.
>
> Probably not, but you could try vi(m). It's easier in some ways,
> harder in others.
Yes, this is probably my first choice for a text editor. And you'll be
able to re-use the skills you'll learn when you upgrade from Windows to
an operating system :-).
>
> But don't expect to find a `Windows product' that can compare with
> either of them.
Actually, vim runs fine under Win32 (and the gvim has syntax
highlighting as well).
AllanC.
------------------------------
Date: Tue, 18 Aug 1998 09:59:30 +0200
From: Koos Pol <koos_pol@nl.compuware.com>
Subject: Re: Recommend a good editor
Message-Id: <35D93462.4E05@nl.compuware.com>
You are all so wrong :-)
The best editor for many platforms (DOS, Win, OS/2, Unix) is ofcourse
FTE:
|Text Mode text editor. Version 0.46b4
|Color syntax highlighting for C/C++,
|REXX, HTML, IPF, PERL, Ada, Pascal, TEX
|Multiple file/window editing, Column
|blocks, configurable menus and keyboard
|bindings, mouse support, undo/redo,
|regular expression search and replace,
|folding, background compiler execution.
Sources are included and it's FREE!
http://ixtas.fri.uni-lj.si/~markom/fte
--
Koos Pol
----------------------------------------------------------------------
S.C. Pol T: +31 20 3116122
Systems Administrator F: +31 20 3116200
Compuware Europe B.V. E: Koos_Pol@nl.compuware.com
Amsterdam PGP public key available
------------------------------
Date: Tue, 18 Aug 1998 12:04:34 +0800
From: Low Cheng Hong <chlow@crtc.corp.mot.com>
Subject: Socket buffering problem
Message-Id: <35D8FD52.876353AF@crtc.corp.mot.com>
Hi,
I have a server program which contains the following statements:
use Socket;
...
SOCKET->autoflush();
NEW_SOCKET->autoflush();
accept(NEW_SOCKET, SOCKET);
print NEW_SOCKET "send message to client\n";
print NEW_SOCKET "prompt > ";
...
However the second print message wasn't delivered to the client since it
doesn't contains "\n".
How do I turn off socket buffering?
thanks,
Low Cheng Hong
Motorola Software Centre, Singapore
------------------------------
Date: Tue, 18 Aug 1998 01:16:03 -0400
From: rjk@coos.dartmouth.edu (Ronald J Kimball)
Subject: Re: Splitting numbers?
Message-Id: <1ddxn5t.1hivl5y1i58omwN@bay1-100.quincy.ziplink.net>
Dean Pentcheff <dean2@mail.biol.sc.edu> wrote:
> > @splitted = split(/./, $number);
> [...]
> Might I suggest a different approach though? The split on the decimal
> character is far from robust: what happens if the number is an
> integer? I don't know and I'd rather not find out...
Too bad, I'm going to tell you anyway. If split does not find any
delimiters, it returns a list of one element, which is the original
string.
Thus, in the above code, @splitted would be ($number).
--
_ / ' _ / - aka - rjk@coos.dartmouth.edu
( /)//)//)(//)/( Ronald J Kimball chipmunk@m-net.arbornet.org
/ http://www.ziplink.net/~rjk/
"It's funny 'cause it's true ... and vice versa."
------------------------------
Date: Tue, 18 Aug 1998 06:04:01 GMT
From: etmgero@my-dejanews.com
Subject: Sybperl vs web.sql
Message-Id: <6rb5gh$1c6$1@nnrp1.dejanews.com>
Hello,
I need to access a Sybase database from within perl. I know that sybperl is
probably the best solution, but when I asked our UNIX guy/webmaster here to
install it, he said he wouldn't because of a support risk (no guaranteed
support, not supported by Sybase).
First, is this risk (and it's arguments) true? And is web.sql (provided by
Sybase) a good alternative? Is it like sybperl? Is it at all like a perl
module? If not, what is it? Has anybody had experience with it?
Apart from answers to that, help in writing my book "1001 ways to kill my anti
perl webmaster" is also greatly appreciated.
Regards,
Geert
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum
------------------------------
Date: Tue, 18 Aug 1998 08:25:50 GMT
From: mfuhr@dimensional.com (Michael Fuhr)
Subject: Re: Sybperl vs web.sql
Message-Id: <6rbdq9$lll@flatland.dimensional.com>
etmgero@my-dejanews.com writes:
> I need to access a Sybase database from within perl. I know that sybperl is
> probably the best solution, but when I asked our UNIX guy/webmaster here to
> install it, he said he wouldn't because of a support risk (no guaranteed
> support, not supported by Sybase).
I would prefer using DBI/DBD::Sybase for portability reasons. If you
ever change databases it should be trivial to port your code to the new
system.
I'm curious -- who guarantees support for your Perl installation?
Who guarantees support for any other installed modules (if any)?
--
Michael Fuhr
http://www.fuhr.net/~mfuhr/
------------------------------
Date: Tue, 18 Aug 1998 04:14:18 GMT
From: stevenba@carr.org (Steven Barbash)
Subject: test post z -- please ignore
Message-Id: <MPG.1042d7b9e02a562c989680@riksbyggen.se>
test post z - please ignore
------------------------------
Date: Tue, 18 Aug 1998 08:10:34 GMT
From: b_redeker@hotmail.com
Subject: Re: unpack question
Message-Id: <6rbctp$bta$1@nnrp1.dejanews.com>
In article <6r9g3p$jhd$5@info.uah.edu>,
Greg Bacon <gbacon@cs.uah.edu> wrote:
> In article <6r9bdi$feg$1@nnrp1.dejanews.com>,
> b_redeker@hotmail.com writes:
> : #My Data: aa1.2 bb1234567890 cc1 dd1.234
> : #read lines
> : while ($line=<IN>) {
> : @stuff = unpack("A2A3", $line);
> : print "$line -> @stuff\n";
> : }
> :
> : now this produces neat results, but who can explain to me what happens
> : if I use unpack ("A2f3", $line);
> : ^
> : I get some floating point numbers which seem to have no relation with
> : the data given. Anyone who knows what happens and why?
>
> You have made a breakthrough, Grasshopper.
creek?
[good explanation snipped]
um yes, I clearly wasnt thinking, the thing is that working with perl where
strings and numbers are interchangeable probably clouded my brains.
thanx both Greg and Jon
btw I *AM* reading strictly formatted ASCII data,
so the unpack("A..") works for me (and best and easiest)
--
Boudewijn
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum
------------------------------
Date: 18 Aug 1998 10:40:43 +0200
From: Alois Steindl <asteindl@mch2pc21.tuwien.ac.at>
Subject: Re: Why dont people read the FAQs
Message-Id: <u7yasmof78.fsf@mch2pc21.tuwien.ac.at>
Jonathan Feinberg <jdf@pobox.com> writes:
> Remember that the replies to a given post may not have propagated when
> someone posts their own reply. How can you know that 5 other people
> have already posted replies?
>
> --
> Jonathan Feinberg jdf@pobox.com Sunny Brooklyn, NY
> http://pobox.com/~jdf/
Hello,
I don't think it's necessary at all to post such replies. Maybe the
traffic in this newsgroup could be reduced considerably, if answers to
FAQs were send by email: If a FAQ generates 5 responses with pointers
to the FAQ, the traffic caused by these answers is maybe much larger
than by the question itself.
Alois
--
Alois Steindl, Tel.: +43 (1) 58801 / 5529
Inst. for Mechanics II, Fax.: +43 (1) 5875863
Vienna University of Technology,
A-1040 Wiedner Hauptstr. 8-10 Email: Alois.Steindl+E325@tuwien.ac.at
------------------------------
Date: Mon, 17 Aug 1998 22:45:21 -0700
From: Yary Hluchan <fecund@fatnet.net>
Subject: Re: Win32::Console For Password Entry
Message-Id: <35D914F1.2014@fatnet.net>
Not really sure, but:
# $key = $Console->InputChar(1) || die "Error reading character";
how about making it
defined ($key = $Console->InputChar(1)) or die "Error reading char";
------------------------------
Date: 12 Jul 98 21:33:47 GMT (Last modified)
From: Perl-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Special: Digest Administrivia (Last modified: 12 Mar 98)
Message-Id: <null>
Administrivia:
Special notice: in a few days, the new group comp.lang.perl.moderated
should be formed. I would rather not support two different groups, and I
know of no other plans to create a digested moderated group. This leaves
me with two options: 1) keep on with this group 2) change to the
moderated one.
If you have opinions on this, send them to
perl-users-request@ruby.oce.orst.edu.
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 V8 Issue 3472
**************************************