[12418] in Perl-Users-Digest
Perl-Users Digest, Issue: 6018 Volume: 8
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Wed Jun 16 14:07:34 1999
Date: Wed, 16 Jun 99 11:00:20 -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 Wed, 16 Jun 1999 Volume: 8 Number: 6018
Today's topics:
Re: $_ and $@ - What are they? (Ben Coleman)
Re: $_ and $@ - What are they? <emschwar@rmi.net>
Re: a thread on threads <gbartels@xli.com>
Re: Asking for passwords and security (core dumps) (Andrew Allen)
Re: Can anyone explain this behavior? <aqumsieh@matrox.com>
connecting with an SSL web server <gbc1@axe.humboldt.edu>
Re: date formats (Lee)
Re: dimensions of a jpg file <dscapin@harris.com>
Re: ENV Question <rootbeer@redcat.com>
Re: File Processing <aqumsieh@matrox.com>
Re: Formatting Unix file permissions eg., 755 -> rwxr-x (Mark-Jason Dominus)
Re: Formatting Unix file permissions eg., 755 -> rwxr-x (Greg Bacon)
Fresh Newbie...Question <gte482i@prism.gatech.edu>
Re: Help with UDP in Win32 (Michel Dalle)
Re: Is it better perl than awk ? (Lee)
Re: MIcrosofts Attack on Perl <steve.horne1@bridge.bst.bls.com>
Re: newbie learning "my" declarations (Mark-Jason Dominus)
Re: Odd syntax in hash subscript <jcreed@cyclone.jprc.com>
Re: regexp trouble.. (M.J.T. Guy)
Re: return value of warn <rootbeer@redcat.com>
Re: SQL statement in Perl paulm@dirigo.com
Re: SQL statement in Perl <craig@mathworks.com>
Re: this charecter @ ruined my day!! (Mary Ellen Foster)
Re: this charecter @ ruined my day!! <revjack@radix.net>
Re: this charecter @ ruined my day!! <craig@mathworks.com>
Re: What makes a string lose its quotes in DBI/DBD quer <clint@drtech.co.uk>
Re: What makes a string lose its quotes in DBI/DBD quer <craig@mathworks.com>
win32 perl problems gheppner@my-deja.com
Special: Digest Administrivia (Last modified: 12 Dec 98 (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Wed, 16 Jun 1999 17:16:03 GMT
From: tnguru@termnetinc.com (Ben Coleman)
Subject: Re: $_ and $@ - What are they?
Message-Id: <3767db8d.654816926@news.mindspring.com>
On 16 Jun 1999 13:54:04 GMT, fl_aggie@thepentagon.com (I R A Aggie) wrote:
>On 15 Jun 1999 19:52:43 -0500, Abigail <abigail@delanet.com>, in
><slrn7mdtr6.do2.abigail@alexandra.delanet.com> wrote:
>
>+ The best way to find out is to consult the intestines of a M$ developer.
>
>You say this like it is a bad thing. Of course, when we run out of
>M$ developers, no more documentation.
The worst thing is having to travel to Redmond to consult the docs. Can't
someone start an MSDI delivery service?
Ben
--
Ben Coleman
Senior Systems Analyst
TermNet Merchant Services, Inc.
Atlanta, GA
------------------------------
Date: 16 Jun 1999 11:16:24 -0600
From: Eric The Read <emschwar@rmi.net>
Subject: Re: $_ and $@ - What are they?
Message-Id: <xkfu2s8kqvr.fsf@valdemar.col.hp.com>
Uri Guttman <uri@sysarch.com> writes:
> >>>>> "A" == Abigail <abigail@delanet.com> writes:
>
> A> The best way to find out is to consult the intestines of a M$ developer.
>
> print 'disgusting' x 2 ;
>
> and won't all the chickens and sheep of the world protest that their
> documentation jobs are being taken away?
Sure, but the goat lobby in this country is very strong. This explains
the popularity of [E]IDE.
-=Eric
------------------------------
Date: Wed, 16 Jun 1999 12:26:25 -0400
From: Greg Bartels <gbartels@xli.com>
Subject: Re: a thread on threads
Message-Id: <3767D031.B289AF58@xli.com>
Uri Guttman wrote:
> i feel that his model is not clear enough to decide if threads are
> warranted. as perl threads a not stable, that is a moot point so i was
> pushing the fork solution.
the model is this:
I have many subroutines to run.
I will call each one in sequence, controlling the order myself.
when the subroutine calls MySleep, that sub needs to stop,
set itself up to continue at a later time, and allow the next sub
to be called.
only in this last step does the idea of multiple processes become
necessary. the subs dont run asyncronously, I do the switching
from one sub to the other. even if I do use fork(), I would
still set up controls so that only one child is doing anything
at a time.
after reading all of the URL's that Tom mentioned, it sounds
like I need threads, or something like clone(), which is a
linux thing which is like fork, except the data isn't copied,
its shared.
the thread tutorial seems to say that what I need is in threads.
the issue is speed, then, since everyone says threads are slower.
(well, 2 out of 3 said so)
how would fork() fare if all the data is shared via IPC::Sharable?
does that slow things down at all?
I cant find clone() in any perl documentation, so i assume its
not available.
Greg
------------------------------
Date: 16 Jun 1999 17:35:38 GMT
From: ada@fc.hp.com (Andrew Allen)
Subject: Re: Asking for passwords and security (core dumps)
Message-Id: <7k8n9a$7st$5@fcnews.fc.hp.com>
Dr. Henrik Seidel (Henrik.Seidel@gmx.de) wrote:
: I am looking for a solution with core
: dumps without plain text passwords. Any help?
: (P.S.: I know that root can do everything anyway, but root must know how
: to do the right thing, and sending a signal is really easy.)
And digging through a core file is easy? Probably no easier than
reading /dev/mem, and that can be done without you even knowing it.
Probably the easiest would be for root just to monitor the tty. Or the
Xserver keystrokes. Or the keyboard interrupt handler. Or the telnet
packets (if it's from a remote login). I think there's utilities that
do all of these.
If you're looking for a secure solution in such a antagonistic
environment, use-once passwords might be your only answer. There's
plenty of folks willing to sell you a expensive little one-function
calculator or dongles for this exact purpose. Here at HP, it's
required to get into the firewall. After much grumbling, I realized
it's a pretty good answer.
Andrew
------------------------------
Date: Wed, 16 Jun 1999 12:22:27 -0400
From: Ala Qumsieh <aqumsieh@matrox.com>
To: Bob Minnick <bobmin@nidlink.com>
Subject: Re: Can anyone explain this behavior?
Message-Id: <x3y4sk815fh.fsf@tigre.matrox.com>
Bob Minnick <bobmin@nidlink.com> writes:
> ($var1, $var2)=split(/ /,$arrary[$index],2);
>
> According to my documentation (camel book) split should split the array
> into the two variables where it finds the space (contained between the
> slashes), but what is happening is $var2 is getting the second value,
> but it also contains a trailing space.
It is very hard to guess what the problem is if I don't know what
$array[$index] contains. But, try the following:
($var1, $var2) = split(' ', $array[$index], 2);
Splitting on ' ' is magical. Read about it in a recent copy of
perlfunc.
> I can easily code around this
> problem, but it would be more elegant to doing it with the split,
> assuming split works the way the documentation claims it does. Now my
> camel book was up to date as of perl4, has the functionality changed
> since then?
Of course. You'll be amazed at how much Perl5 has to offer. Check the
version of your Perl interpreter by typing 'perl -v'. If it is
anything less than 5.005 then you should definitely upgrade. Go to
www.perl.com and download it. Also, grab a newer version of the book
you have, you won't regret it.
HTH,
Ala
------------------------------
Date: Wed, 16 Jun 1999 10:37:30 -0700
From: Greg Coit <gbc1@axe.humboldt.edu>
Subject: connecting with an SSL web server
Message-Id: <3767E0DA.A96F9000@axe.humboldt.edu>
I'm using a nice simple script from Lincoln Stein that I found at
www.modperl.com which checks a remote web server and sends email if
there is no response. The problem is my sevrver is an SSL server, and
LWP::Simple (and I think LWP::UserAgent) doesn't support SSL. All I
need to know is if the server responds. I think even a request from the
server for an SSL connection would suffice (since it wouldn't do this if
the server was down). Any recommendations?
Thanks,
--
Greg Coit
Email: gbc1@humboldt.edu - Phone: (707)826-6109 - FAX: (707)826-6100
Humboldt State University: Computing and Telecommunications Services
Linux is not The Answer. Yes is the answer. Linux is The Question.
------------------------------
Date: Wed, 16 Jun 1999 13:01:47 -0500
From: rlb@intrinsix.ca (Lee)
Subject: Re: date formats
Message-Id: <B38D50BB9668847178@204.112.166.88>
In article <3767ADCD.A1E1DBF3@ateb.com>,
Emily Latham <frog@ateb.com> wrote:
>Just so all of you know and can stop acting as though I am a complete
>moron.
Nothing personal, Emily.
They do it to each other, too. :)
Lee
------------------------------
Date: Wed, 16 Jun 1999 13:10:20 -0400
From: Deamon George Scapin <dscapin@harris.com>
Subject: Re: dimensions of a jpg file
Message-Id: <3767DA7B.EA1FACAC@harris.com>
Eric Bohlman wrote:
> Browsers generally do a lousy job of rescaling images regardless of
> whether or not you preserve the aspect ratio. Additionally, if you're
> trying to shrink the images using browser rescaling, you're forcing the
> user to download the full-sized image files; I've seen people try to do
> this in order to create thumbnails for photo galleries, and the effect is
> a site that takes forever to display.
It's straigt forward rescaling of the original image. If the image is 1090
x 400 and I want to fit that guy into a 800 by 600 view, I transform the
original to 800 x 295. This will fit snug into the 800 x 600 view with room
to spare.
------------------------------
Date: Wed, 16 Jun 1999 10:31:16 -0700
From: Tom Phoenix <rootbeer@redcat.com>
Subject: Re: ENV Question
Message-Id: <Pine.GSO.4.02A.9906161023130.26850-100000@user1.teleport.com>
On Tue, 15 Jun 1999 doug_brough@my-deja.com wrote:
> When I execute my little test script, I get the error message:
>
> relocation error: file /home/orca/rfadba/oas4.0/lib/libclntsh.so.1.0
>
> But since I reset LD_LIBRARY_PATH, why is it even pointing to
> /home/orca/rfadba/oas4.0? What am I doing wrong?
I'm really not sure. But could the LD_LIBRARY_PATH be set by some
configuration setting used by the (other?) modules you're using?
--
Tom Phoenix Perl Training and Hacking Esperanto
Randal Schwartz Case: http://www.rahul.net/jeffrey/ovs/
------------------------------
Date: Wed, 16 Jun 1999 12:28:21 -0400
From: Ala Qumsieh <aqumsieh@matrox.com>
Subject: Re: File Processing
Message-Id: <x3y1zfc155m.fsf@tigre.matrox.com>
ericho@sehk.com.hk writes:
> What puzzled me is the difference between
>
> local($r) = <f>;
>
> and
>
> local($r);
> $r = <f>;
In the first one:
local ($r) = <F>;
You are reading from the filehandle in *LIST CONTEXT*. Context is a
very important concept in Perl. When reading from a filehandle in list
context, the whole file is slurped in and returned as an array. In
your case, you are reading the whole file, assigning the first line to
$r and discarding the rest (since ($r) is a list of one element only).
Any subsequent attempts to read from the filehandle will fail since
the entire file has already been read.
In the second case, you are reading from the filehandle in *SCALAR
CONTEXT*, which returns the next line in the file, if it's
available. Any subsequent reads will return the following line(s) in
the file, depending on the context, and whether there is any more data
still to be read.
HTH,
Ala
------------------------------
Date: Wed, 16 Jun 1999 17:33:11 GMT
From: mjd@op.net (Mark-Jason Dominus)
Subject: Re: Formatting Unix file permissions eg., 755 -> rwxr-xr-x
Message-Id: <7k8n38$8l0$1@monet.op.net>
Keywords: Hexapodia as the key insight
In article <7k8knq$j2o@chronicle.concentric.net>, <plb@concentric.net> wrote:
>I'm looking for a pointer to an algorithm that takes the
>octal unix file permissions (like 0755) and converts them
>to the symbolic output as used by 'ls -l' such as rwxr-xr-x.
>I've run across this once before, but can't seem to locate it now.
Perhaps what you want is
http://www.plover.com/~mjd/perl/lsMode/
Stat::lsMode - format file modes like the ls -l command does
SYNOPSIS
use Stat::lsMode;
$mode = (stat $file)[2];
$permissions = format_mode($mode);
# $permissions is now something like `drwxr-xr-x'
$permissions = file_mode($file); # Same as above
$permissions = format_perms(0644); # Produces just 'rw-r--r--'
$permissions = format_perms(644); # This generates a warning message:
# mode 644 is very surprising. Perhaps you meant 0644...
Stat::lsMode->novice(0); # Disable warning messages
------------------------------
Date: 16 Jun 1999 17:39:01 GMT
From: gbacon@itsc.uah.edu (Greg Bacon)
Subject: Re: Formatting Unix file permissions eg., 755 -> rwxr-xr-x
Message-Id: <7k8nfl$lcc$2@info2.uah.edu>
In article <7k8knq$j2o@chronicle.concentric.net>,
<plb@concentric.net> writes:
: I'm looking for a pointer to an algorithm that takes the
: octal unix file permissions (like 0755) and converts them
: to the symbolic output as used by 'ls -l' such as rwxr-xr-x.
: I've run across this once before, but can't seem to locate it now.
Check out the Stat::lsMode module:
<URL:http://www.plover.com/~mjd/perl/lsMode/manual.html>
Greg
--
As I stood before the gates I realized that I never want to be as certain
about anything as were the people who built this place.
-- Rabbi Sheila Peltz, on her visit to Auschwitz
------------------------------
Date: 16 Jun 1999 17:40:16 GMT
From: Franklin Edward Sadler <gte482i@prism.gatech.edu>
Subject: Fresh Newbie...Question
Message-Id: <7k8ni0$86v@catapult.gatech.edu>
Ok...First off Im a newbie at PERL (started yesterday). My question is how
do u access double arrays??? Like $array[a,b]; or $array[a][b]; or
neither???
My array basically consists of records that themselves are also arrays.If
someone could please give me the correct format I would certainly
appreciate it. Also, what if had an array of records that held lists, how
would I go about accessing something in the list of any record? Thanx...
--
M U S T A N G Z !
Franklin Edward Sadler
Georgia Institute of Technology, Atlanta Georgia, 30332
Email: gte482i@prism.gatech.edu
------------------------------
Date: Wed, 16 Jun 1999 17:21:57 GMT
From: michel.dalle@usa.net (Michel Dalle)
Subject: Re: Help with UDP in Win32
Message-Id: <7k8mgr$7e1$1@news.mch.sbs.de>
In article <7k3235$phi$1@houston.jhuapl.edu>, "Kevin Murphy" <MurphKE1@aplmsg.jhuapl.edu> wrote:
> I am attempting to write a Perl script to read UDP datagrams
>being broadcast from a GPS receiver. Unfortunately, I have been
>unable to make the simplest of test scripts using UDP function -
>using ActiveState 5.17 and WindowsNT. I can make test scenarios
>with TCP sockets work just fine, but I'm stuck with UDP and WindowsNT
>for the end product. The UDP samples in the PerlIPC documentation
>don't seem to work properly for me (assuming I'm using them correctly).
>Any suggestions?? Can anybody provide a sample UDP client that
>works in WinNT??
Referring to the PerlIPC example, do you specify the IP address of the time
servers you want to check (instead of the hostnames) ?
It works for me (with ActiveState Perl 5.15 on Windows NT 4)
What is the error that the script generates ? This should point you to the
place where it goes wrong : is it socket, bind, send, recv, or don't you get
anything in return ? If you don't get anything in return, you're probably
barking up the wrong tree...er...trying to reach a server that does not
provide the 'time' service on UDP.
Have fun,
Michel.
------------------------------
Date: Wed, 16 Jun 1999 13:01:47 -0500
From: rlb@intrinsix.ca (Lee)
Subject: Re: Is it better perl than awk ?
Message-Id: <B38D50BB9668847140@204.112.166.88>
In article <slrn7mfc8r.8ii.kasal@matsrv.math.cas.cz>,
kasal@matsrv.math.cas.cz (Stepan Kasal) wrote:
> Things like Perl or Mathematica are simply to large to glance. You
>have to learn a subset (depending on what you read) and then continuously
>hear things like "this can be written sipler"... I don't like those coloses
>-- in history it was PL/1 (I think), combining all the best features of all
>it's predecessors, and endig up as unusable vehicle.
PL/I ranks among the top five favourite languages I've worked in, just
below Perl, Lisp, Smalltalk and Icon.
At the very bottom of the list lies C. Guess what language I have to work
in daily? <sigh!> Bad karma sucks.
Lee
------------------------------
Date: Wed, 16 Jun 1999 12:11:45 -0500
From: Steve Horne <steve.horne1@bridge.bst.bls.com>
Subject: Re: MIcrosofts Attack on Perl
Message-Id: <3767DAD1.A64A7D1E@bridge.bst.bls.com>
Cameron Laird wrote:
>
> Now, what "C++" means, as least at the business level
> defined by recruiters and managers, is "the latest
> MS VC++". VC++ is poorly compatible between versions,
I just wanted to make the comment that _many_ of us working on
mission-critical "real" business applications develop in C++ on a Unix
platform (myself on HP-UX, AIX and Solaris).
As an active participant in the interview/evaluation process, I view
past experience with VC++ differently than straight C++ experience. Due
to MS VC++'s GUI drag-and-drop "programming", experience with VC++
counts for less than equivalent work done with the actual language
itself.
I'm not saying that we don't hire people w/VC++ experience, but when
considering previous experience, VC++ usually has less weight than
development on other platforms. Plus, as far as your comment above,
most managers in my type of environment couldn't care less about "the
latest MS VC++".
-Steve
------------------------------
Date: Wed, 16 Jun 1999 17:52:45 GMT
From: mjd@op.net (Mark-Jason Dominus)
Subject: Re: newbie learning "my" declarations
Message-Id: <7k8o7n$8sj$1@monet.op.net>
In article <B38C77AC966851720D@204.112.166.88>, Lee <rlb@intrinsix.ca> wrote:
>"Make me a brand new variable, call it $total, and set its value to one
>more than it used to be."
You can say that, but not the way the other guy wanted to:
my $total = $total + 1;
------------------------------
Date: 16 Jun 1999 13:09:19 -0400
From: Jason Reed <jcreed@cyclone.jprc.com>
Subject: Re: Odd syntax in hash subscript
Message-Id: <a1iu8om5s0.fsf@cyclone.jprc.com>
John Nolan <nolanj00@mh.us.sbphrd.com> writes:
> Is this behavior documented somewhere? I've been searching
> for it, but so far I have not found it.
Try looking at $; in perlvar
---Jason
------------------------------
Date: 16 Jun 1999 17:30:57 GMT
From: mjtg@cus.cam.ac.uk (M.J.T. Guy)
Subject: Re: regexp trouble..
Message-Id: <7k8n0h$3ti$1@pegasus.csx.cam.ac.uk>
Abigail <abigail@delanet.com> wrote:
>Bastiaan S van den Berg (office@asc.nl) wrote on MMCXIV September
>MCMXCIII in <URL:news:7k5nu7$4ea$1@zonnetje.NL.net>:
>..
>.. the regexp that causes the error is :
>.. $HTML =~ s/$(\w+)/$\1/g;
>
>Wasn't this discussed recently?
>
>$( is a variable.
Not since perl5.005. Watch:
/$(/;
/$(/: unmatched () in regexp at ...
$|, $) and $( are treated specially and not interpolated (unless you write
${(} of course). The third of these doesn't appear to be documented.
Mike Guy
------------------------------
Date: Wed, 16 Jun 1999 10:53:20 -0700
From: Tom Phoenix <rootbeer@redcat.com>
Subject: Re: return value of warn
Message-Id: <Pine.GSO.4.02A.9906161033100.26850-100000@user1.teleport.com>
On 15 Jun 1999, Andrew Allen wrote:
> Is the return value of "warn" documented anywhere?
Besides the source? :-)
> It appears to always return 1. Is this correct?
>From the looks of pp_sys.c (and my very poor understanding of the core
code) I'd say yes. But, since it's not in the docs, it _could_ change in a
future Perl (though I have no idea why it would).
> The reason I'm asking is for constructs like:
>
> warn 'hi' and next;
I'd much prefer making those separate statements; if it's any less
efficient that way, we should fix _that_. But if you're really into such
obscure things, why not use the comma?
warn('hi'), next;
Oh, maybe you hate those parens and now you want a low-precedence comma
operator. I know there are at least two people who would throw tomatoes at
me if I were to suggest one, so I won't.
warn 'hi' then next; # imaginary op that'll never happen
> Should I file a perlbug to have the perlfunc entry updated?
Include a patch, to both the docs and the testsuite, if you really want it
done. It might happen.
Cheers!
--
Tom Phoenix Perl Training and Hacking Esperanto
Randal Schwartz Case: http://www.rahul.net/jeffrey/ovs/
------------------------------
Date: Wed, 16 Jun 1999 16:07:35 GMT
From: paulm@dirigo.com
Subject: Re: SQL statement in Perl
Message-Id: <7k8i3u$o7v$1@nnrp1.deja.com>
Does this require the DBI.pm file?
In article <7k7p77$7be@news.vtcom.fr>,
"Ysteric's" <eyounes@aol.com> wrote:
> why don't you use DBI and DBD::ODBC modules, it's very easy ...
>
> look the folowing example :
>
> use DBI;
>
> print "connexion ...";
> $dbh = DBI->connect('dbi:ODBC:Secu') || die('$DBI::errstr');
> # ^^^^^ this
is your
> DSN
>
> print "...connexion OK";
>
> $sth = $dbh->prepare(qq{select * from testrg});
> $sth->execute || die('$DBI::errstr');
>
> $cnt = 0;
> print qq{<font face="Arial,Helvetica" width=600><table>
> };
> $no_secu =~ s/ /+/g;
> if( @rows = $sth->fetchrow_array) {
> foreach $x (@rows) {
> print "$x<br>"; #for example !!!
> }
> } else {
> print qq{
> <table width="400" border=0 bgcolor="#000000">
> <th><font face="Arial, Helvetica" color="#FFFFFF"
> size="5"><center><b>Fiche
employ&eatute;<br> </b></center></font></th>
> <tr>
> <td><hr><font face="Arial, Helvetica, sans-serif"
> color="#FFFFFF"><b>Sorry, no records found !</b></font><hr></td>
> </tr>
> </table>
> };
> }
>
> $sth->finish;
> $dbh->disconnect;
>
> Hope that it will be useful for you
>
> Eric - FRANCE
>
> paulm@dirigo.com a icrit dans le message <7k669f$ts0
$1@nnrp1.deja.com>...
> >Does anyone have any familiarity with writing SQL statements in Perl?
> >
> >I have a script that's using Win32 OLE and calling a System DSN. The
> >call to the system DSN is working, but the script is failing when
> >running the SQL statement. I'm attempting to grab info from an
Access
> >97 database. It looks as follows:
> >
> >my $db = new Win32::ODBC( $dsn ) || die "Error: " .
Win32::ODBC::Error
> >();
> >$stmt = "SELECT ALL * FROM [Forecast]";
> >
> >I've tried multiple combinations of the SQL. It's attempting to grab
> >the data from the Forecast table and print it, but it keeps erring
out.
> >
> >Does this have something to do with Access 97?
> >Any help would be largely appreciated.
> >
> >Thanks in advance.
> >
> >--
> >Paul R. Mesker
> >System Engineer
> >Dirigo Inc.
> >
> >
> >Sent via Deja.com http://www.deja.com/
> >Share what you know. Learn what you don't.
>
>
--
Paul R. Mesker
System Engineer
Dirigo Inc.
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
------------------------------
Date: Wed, 16 Jun 1999 13:22:53 -0400
From: Craig Ciquera <craig@mathworks.com>
Subject: Re: SQL statement in Perl
Message-Id: <3767DD6D.FB134024@mathworks.com>
Yes and the DBD Oracle driver.
Craig
paulm@dirigo.com wrote:
> Does this require the DBI.pm file?
>
------------------------------
Date: 16 Jun 99 16:59:36 GMT
From: mef@cs.toronto.edu (Mary Ellen Foster)
Subject: Re: this charecter @ ruined my day!!
Message-Id: <1999Jun16.125936.11147@jarvis.cs.toronto.edu>
In article <3770c873.25348819@enews.newsguy.com>,
Marcel Grunauer <marcel.grunauer@lovely.net> wrote:
>On 15 Jun 1999 18:46:36 -0700, Tom Christiansen <tchrist@mox.perl.com>
>wrote:
>
>>--tom
>>--
>> For all we know, this is just an elaborite simulation running in a cube on
>> someone's desk. --Captain Jean-Luke Picard (ST:ng)
>
>[off-topic & pedantic:]
>
>Jean-Luc Picard
(Off-topic & pedantic) ** 2:
elaborate
(Good lord, I don't believe that, after all this time lurking here, *this*
is my first real post...)
MEF
--
Mary Ellen Foster, Department of Computer Science, University of Toronto
Email: mef@cs.utoronto.ca Web: http://www.cs.utoronto.ca/~mef/
--------------------- Law of Software Envelopment: ---------------------
Every program attempts to expand until it can read mail.
------------------------------
Date: 16 Jun 1999 17:20:50 GMT
From: Toronto Augustan <revjack@radix.net>
Subject: Re: this charecter @ ruined my day!!
Message-Id: <7k8mdi$2u7$2@news1.Radix.Net>
Keywords: Hexapodia as the key insight
Gabriel Russell explains it all:
:ALWAYS ALWAYS ALWAYS debug your cgi scripts on the command line.
:If they wont work there then they wont work under a webserver.
PLEASE PLEASE PLEASE snip unnecessary followup lines, and reply
below the quoted material you're replying to. Thanks.
If those quickie web hosting companies won't provide logs, they
certainly won't provide command line access.
Is there a perl distribution out yet for my Atari ST here?
------------------------------
Date: Wed, 16 Jun 1999 13:37:39 -0400
From: Craig Ciquera <craig@mathworks.com>
Subject: Re: this charecter @ ruined my day!!
Message-Id: <3767E0E3.F894A2D7@mathworks.com>
Toronto Augustan wrote:
> Gabriel Russell explains it all:
>
> :ALWAYS ALWAYS ALWAYS debug your cgi scripts on the command line.
> :If they wont work there then they wont work under a webserver.
>
> PLEASE PLEASE PLEASE snip unnecessary followup lines, and reply
> below the quoted material you're replying to. Thanks.
>
> If those quickie web hosting companies won't provide logs, they
> certainly won't provide command line access.
>
Don't know where this thread started, but I would certainly recommend
running a web server configuration ON YOUR MACHINE, that mirrors the web
server configuration of your ISP. Then you can debug from the command
line and rest at night knowing your scripts will work.
Craig
------------------------------
Date: Wed, 16 Jun 1999 18:19:24 +0100
From: "Clinton Gormley" <clint@drtech.co.uk>
Subject: Re: What makes a string lose its quotes in DBI/DBD query.
Message-Id: <7k8m4o$1eb$1@taliesin.netcom.net.uk>
Thanks Craig
I'll give it a go. Because it is so unpredictable, I won't be sure that
it's working for a while.
Clint
Craig Ciquera <craig@mathworks.com> wrote in message
news:3767D395.53B0DCDB@mathworks.com...
> Sorry, maybe I'm missing something.
>
> Perhaps you should use bind_params.
>
> See: http://www.symbolstone.org/technology/perl/DBI/doc/tpj5/index.html
>
> Craig
>
> Clinton Gormley wrote:
>
> > I don't think that the quoting of the original query is the problem. I
am
> > currently using a here string. And usually it works, it seems though
that
> > every now and again particular elements in the array lose their "type".
So
> > it's an error during substitution.
>
------------------------------
Date: Wed, 16 Jun 1999 13:23:56 -0400
From: Craig Ciquera <craig@mathworks.com>
Subject: Re: What makes a string lose its quotes in DBI/DBD query.
Message-Id: <3767DDAC.4FB09C97@mathworks.com>
Let me know if you find anything.
I'd be interested to know the answer.
Craig
Clinton Gormley wrote:
> Thanks Craig
>
> I'll give it a go. Because it is so unpredictable, I won't be sure that
> it's working for a while.
>
> Clint
> >
------------------------------
Date: Wed, 16 Jun 1999 16:00:36 GMT
From: gheppner@my-deja.com
Subject: win32 perl problems
Message-Id: <7k8hmt$o3c$1@nnrp1.deja.com>
Hi all,
Ok folks, here's my situation: we resently upgraded our version of
perl to the most recent. all of our perl scripts ran fine before this.
Now we have a couple of scripts that return this error when you run
them: CGI ERROR:
The specified CGI application misbehaved by not returning a
complete set of HTTP headers. The headers it did return are:
Bareword "main:NTGetCWD" not allowed while "strict subs" in use at
C:Perl\lib/cwd.pm
line 238.
Array found where operator expected at c:\perl\lib/cwd.pm line 238 near
"main::NTGetCWD @_"
(Do you need to predeclare main::NTGetCWD?)
Begin failed--complitaion aborted at ... etc etc...
It looks like this NTGetCWD is not a recognized function, even though
it's included in the CWD package.
I'm totally lost here, if someone could help me i'd be greatful.
G.
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
------------------------------
Date: 12 Dec 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 Dec 98)
Message-Id: <null>
Administrivia:
Well, after 6 months, here's the answer to the quiz: what do we do about
comp.lang.perl.moderated. Answer: nothing.
]From: Russ Allbery <rra@stanford.edu>
]Date: 21 Sep 1998 19:53:43 -0700
]Subject: comp.lang.perl.moderated available via e-mail
]
]It is possible to subscribe to comp.lang.perl.moderated as a mailing list.
]To do so, send mail to majordomo@eyrie.org with "subscribe clpm" in the
]body. Majordomo will then send you instructions on how to confirm your
]subscription. This is provided as a general service for those people who
]cannot receive the newsgroup for whatever reason or who just prefer to
]receive messages via e-mail.
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 6018
**************************************