[10072] in Perl-Users-Digest
Perl-Users Digest, Issue: 3665 Volume: 8
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Wed Sep 9 01:07:23 1998
Date: Tue, 8 Sep 98 22:00:16 -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, 8 Sep 1998 Volume: 8 Number: 3665
Today's topics:
Re: Carriage Return on WinNT4.0 <rene.guitar@videotron.ca>
Compiler with *.pm files: including all subroutines? <jn@n2k.com>
Fork Troubles <75762.2332@CompuServe.COM>
Re: help requested on a perl program (Martien Verbruggen)
Re: History of Perl - round 1 <aduncan@cs.ucsb.edu>
how to quote ; (Jimmy Zhengyu Zhang)
Re: My cool DIRTTY PICS page (Craig Berry)
newbie while/regex question <grant.ozolins@anu.edu.au>
Re: newbie while/regex question <rick.delaney@shaw.wave.ca>
Re: Off topic, but ... [Was Re: Perl & Java - differenc (Martien Verbruggen)
Re: Off topic, but ... [Was Re: Perl & Java - differenc <zenin@bawdycaste.org>
Passing hash reference to an XSUB... <berend@istanbul.engr.sgi.com>
Re: Perl Programmer Needed (Martien Verbruggen)
Re: Perl Programmer Needed <zenin@bawdycaste.org>
Re: Perl Programmer Needed <zenin@bawdycaste.org>
Re: Perl Programmer Needed (David Formosa)
Re: Perl Programmer Needed (Abigail)
Re: Perl Programmer Needed <Richard@WowMe.com>
Re: Perl Programmer Needed <Richard@WowMe.com>
Perlscript and ASP: Weird Hash of Request object? nataliep@my-dejanews.com
Re: Unix and Sendmail Errors <zenin@bawdycaste.org>
Special: Digest Administrivia (Last modified: 12 Mar 98 (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Tue, 08 Sep 1998 22:16:03 -0400
From: Rene Guitar <rene.guitar@videotron.ca>
Subject: Re: Carriage Return on WinNT4.0
Message-Id: <35F5E4E2.799A0BE6@videotron.ca>
Yeah, but if you want to print out:
"Hello!
This
is a test"
what would be your trick?
Alex Tatistcheff wrote:
> It seems to me that the command:
>
> system "net send administrator \"Hello, this is a test\"";
>
> Should work fine - no need for a \n at the end.
>
------------------------------
Date: Tue, 08 Sep 1998 23:00:46 -0400
From: John Nolan <jn@n2k.com>
Subject: Compiler with *.pm files: including all subroutines?
Message-Id: <35F5EF5E.EBEE9511@n2k.com>
I am trying to compile and statically link a short Perl script which
uses
some external modules (specifically, some LWP modules and Time::HiRes).
Everything seems to build properly, however, I consistently get this
error message
at run-time:
Can't locate object method "new" via package "LWP::UserAgent" at
timefetch.pl line 86.
There was a post to this group from Malcolm Beattie on exactly this
problem
way back in January 1997, which explained that the compiler does not
necessarily include certain subroutines in modules even if you use them
in your code.
For this reason, you need to explicitly include them using the "-u"
switch.
I've been tinkering with different arguments to this switch, but no luck
so far.
Here are the arguments I've been passing to perl and gcc. I get
essentially
the same results regardless whether I use the -u switch.
PERL=/usr/local
PERLLIB=/usr/local/lib/perl5/site_perl/5.005/sun4-solaris/auto
PERLCORE=/usr/local/lib/perl5/5.00502/sun4-solaris/CORE
${PERL}/bin/perl
-MO=C,-uLWP::UserAgent::new,-uHTTP::Request::new,-oscript.c script.pl
${PERL}/bin/perl ${PERL}/lib/perl5/5.00502/B/cc_harness -o script
script.c \
-L/usr/local/lib $PERLCORE/libperl.a $PERLLIB/Time/HiRes/HiRes.a
I'm using Perl 5.005_02, Solaris 2.6, and gcc 2.8.1.
Is this just not possible to do? Have I missed something in the
documentation?
If so, my apologies. Any pointers would be most appreciated.
--John Nolan, jn@n2k.com
------------------------------
Date: Tue, 08 Sep 1998 22:24:48 -0400
From: Ruben Safir <75762.2332@CompuServe.COM>
Subject: Fork Troubles
Message-Id: <eosWFk529GA.315@ntawwabp.compuserve.com>
Anyone have any idea why this script only runs about
2 directories deep?
#! /usr/bin/perl
$direct = $ARGV[0] . "/";
print "TOP DIRECTORY is $direct \n";
opendir(DATABASE, "$direct") || die "can't open WWW Directory";
@allfiles = readdir DATABASE;
for( $i=0; $i<@allfiles; $i++){
# print "$i : $allfiles[$i] \n";
next if( $allfiles[$i] =~ /^\.+/);
print "iCURRENT DIRECTORY $direct"."$allfiles[$i] \n";
Press <CR> for more:
if( -d $allfiles[$i] ){
print "We have a directory $allfiles[$i] \n";
$pid = fork;
if ($pid ){
print STDOUT "PARENT PID\n\n $pid";
&passit;
}
elsif($pid == 0 ){
print STDOUT "\n\n CHILD: $direct $allfiles[$i] ";
exec ($0, "$direct". "$allfiles[$i]");
exit;
}
}
else{
Press <CR> for more:
next if( $allfiles[$i] !~ /\.htm/);
&passit;
}
}
sub passit{
open( WORKING_FILE, "$direct"."$allfiles[$i]") or die "Can't open $allfiles[$i]";
open(out_file, ">$direct" . "$allfiles[$i].new");
while($parse_file = <WORKING_FILE>){
$parse_file =~ s/http:\/\/128.122.223.103\/www\//http:\/\/rsafir2/g;
open(out_file, ">>$allfiles[$i].new");
print out_file $parse_file;
close(out_file);
}
Press <CR> for more:
exit;
}
I'm getting a number of zombie processesand changes only 2 directories deep.
It cuts out on the same directory. Maybe I need a wait?
Ruben
------------------------------
Date: Wed, 09 Sep 1998 02:30:27 GMT
From: mgjv@comdyn.com.au (Martien Verbruggen)
Subject: Re: help requested on a perl program
Message-Id: <7LlJ1.4$eo3.11569@nsw.nnrp.telstra.net>
In article <6t4gik$2f3$1@nnrp1.dejanews.com>,
jojo9645@my-dejanews.com writes:
> I need help on a perl program I am working on. its a short code (less than
> 700 BYTES) designed for removing excessive spaces in a field (pipe
If the code is that short, maybe you can post it here. That way you
might have had a direct answer pointing out that maybe you should code
that part of your program differently, or whatever. hard to say
without seeing any code, hmm?
Martien
--
Martien Verbruggen |
Webmaster www.tradingpost.com.au | This matter is best disposed of from a
Commercial Dynamics Pty. Ltd. | great height, over water.
NSW, Australia |
------------------------------
Date: Tue, 08 Sep 1998 15:21:06 -0700
From: aduncan <aduncan@cs.ucsb.edu>
Subject: Re: History of Perl - round 1
Message-Id: <35F5ADD2.4809FC69@cs.ucsb.edu>
Elaine:
More to the point, although the original respondent merely suggested the
use of upper-case, your subsequent reply introduced the topics of
grammar and style, which were not at issue. Indeed I see no improper
usage in your original post. Moreover it's certainly excusable to
dispense with case distinction. Quite common among professional writers;
such things can be fixed automatically. Anyway, what are copy editors
for?
However your unfortunate escalation of the discussion to grammar & style
were seized upon by others, to the point that now you are defending
yourself against an implicit accusation of poor punctuation -- an
accusation that was never really made, for an offense never really
committed. A fine example of spontaneous generation. More fodder for the
study of sociological properties of usenet, perhaps.
As to the issue of gender-correlated flaming, I will hazard no opinion.
Andrew
http://www.cs.ucsb.edu/~aduncan
------------------------------
Date: 9 Sep 1998 04:53:29 GMT
From: zhengyu@lacerta.Berkeley.EDU (Jimmy Zhengyu Zhang)
Subject: how to quote ;
Message-Id: <6t51k9$5bt$1@agate.berkeley.edu>
Hi,
Could someone tell me how to quote ; in the string?
Seems I can find a way of doing so.
thnx
zhengyu
------------------------------
Date: 9 Sep 1998 04:05:47 GMT
From: cberry@cinenet.net (Craig Berry)
Subject: Re: My cool DIRTTY PICS page
Message-Id: <6t4uqr$8sc$1@marina.cinenet.net>
Bill Jones, FCCJ Webmaster (webmaster@fccjmail.fccj.cc.fl.us) wrote:
: Nathan V. Patwardhan wrote:
: > 278345@msn.com wrote:
: > : Check out my new home page with free xxx pics.
: >
: > DIRTTY? Maybe this is some kind of new I/O or maybe it's something
: > that has to do with your browser, but either way it doesn't have
: > anything to do with Perl! Hope this helps!
:
: No, DIR-TTY is a new file directory structure that wastes lots of space
: while causing mindless browsing that, in turn, causes a total loss
: in personal productivity.
And 'XXX' is, of course, the prototyped successor to XML, clearly three
times as extended as the latter. It provides a rich semantic markup
language with particularly good coverage in subject areas involving
particularly little coverage.
---------------------------------------------------------------------
| Craig Berry - cberry@cinenet.net
--*-- Home Page: http://www.cinenet.net/users/cberry/home.html
| "Ripple in still water, when there is no pebble tossed,
nor wind to blow..."
------------------------------
Date: Wed, 09 Sep 1998 02:15:39 GMT
From: Standard User <grant.ozolins@anu.edu.au>
Subject: newbie while/regex question
Message-Id: <35F5E4C3.24F19260@anu.edu.au>
Hi Folks,
I'm trying to read in a file, replace an 8 digit number which appears
only one one line with another, and write the whole lot out. However,
only the line I'm matching gets written - how should I go about getting
all the lines of the file put out as well? I assumed that anything that
wasn't matched by the regex substitution would just be left alone, but
I'm obviously wrong.
##############
#!/usr/local/bin/perl
open (RC, "test");
while (<RC>)
{
$_ =~ s/[0-9]{8}/$logdate/g; #I've already defined $logdate in the
real thing
print $_;
}
close (RC);
#############
Thanks in advance,
Grant
grant.ozolins@anu.edu.au
------------------------------
Date: Wed, 09 Sep 1998 02:33:51 GMT
From: Rick Delaney <rick.delaney@shaw.wave.ca>
Subject: Re: newbie while/regex question
Message-Id: <35F5EA8D.8C9141C1@shaw.wave.ca>
[posted & mailed]
Standard User wrote:
>
> Hi Folks,
>
> I'm trying to read in a file, replace an 8 digit number which appears
> only one one line with another, and write the whole lot out. However,
> only the line I'm matching gets written - how should I go about
> getting all the lines of the file put out as well? I assumed that
> anything that wasn't matched by the regex substitution would just be
> left alone, but I'm obviously wrong.
>
> ##############
>
> #!/usr/local/bin/perl
> open (RC, "test");
Check return value,
open (RC, "test") || die "Can't open test: $!\n";
> while (<RC>)
> {
> $_ =~ s/[0-9]{8}/$logdate/g; #I've already defined $logdate in the
> real thing
$_ can be left out here,
s/\d{8}/$logdate/g;
> print $_;
> }
> close (RC);
>
There must be some other problem in the 'real thing'. Since you are
printing $_ for each record of the file, you should get each record.
Perhaps you are resetting $_ in some other operation you left out.
--
Rick Delaney
rick.delaney@shaw.wave.ca
------------------------------
Date: Wed, 09 Sep 1998 02:33:04 GMT
From: mgjv@comdyn.com.au (Martien Verbruggen)
Subject: Re: Off topic, but ... [Was Re: Perl & Java - differences and uses]
Message-Id: <ANlJ1.6$eo3.11569@nsw.nnrp.telstra.net>
In article <slrn6vbo3d.h6.alastair@calliope.demon.co.uk>,
alastair@calliope.demon.co.uk (Alastair) writes:
>>it rocks, but why should we worry about being portable toward
>>Windows, et al, they (meaning windows application developers
>>IE - M$) very rarely worry about being portable in another
>>direction (meaning Open Source and Unix.)
>
> So why stoop to that level?
Revenge :)
Martien
--
Martien Verbruggen |
Webmaster www.tradingpost.com.au | Hi, Dave here, what's the root
Commercial Dynamics Pty. Ltd. | password?
NSW, Australia |
------------------------------
Date: 9 Sep 1998 02:56:01 GMT
From: Zenin <zenin@bawdycaste.org>
Subject: Re: Off topic, but ... [Was Re: Perl & Java - differences and uses]
Message-Id: <905309633.910037@thrush.omix.com>
Martien Verbruggen <mgjv@comdyn.com.au> wrote:
: In article <slrn6vbo3d.h6.alastair@calliope.demon.co.uk>,
: alastair@calliope.demon.co.uk (Alastair) writes:
>snip<
: > So why stoop to that level?
:
: Revenge :)
No matter how big your gun, it's hard to hit Redmond from
a small cave near the south poll.
--
-Zenin (zenin@archive.rhps.org) From The Blue Camel we learn:
BSD: A psychoactive drug, popular in the 80s, probably developed at UC
Berkeley or thereabouts. Similar in many ways to the prescription-only
medication called "System V", but infinitely more useful. (Or, at least,
more fun.) The full chemical name is "Berkeley Standard Distribution".
------------------------------
Date: Tue, 08 Sep 98 20:46:55 PDT
From: "Berend Ozceri" <berend@istanbul.engr.sgi.com>
Subject: Passing hash reference to an XSUB...
Message-Id: <6t4tnf$uqo@fido.engr.sgi.com>
I have an XSUB whose declaration looks like:
HV *
foo(string, hash, func)
char *string;
HV *hash;
SV *cmpfunc;
Now if I call this XSUB from perl like:
$hash{bar} = "blah";
$ref = mypackage::foo("string", \%hash, \&cmpsub);
I get an error that says:
hash is not of type HVPtr at blah.pl line 12.
But if I do:
print \%hash, "\n";
I get:
HASH(0x10020dec)
So what's going on? Why can't I pass this hash reference to my XSUB? Am I doing
something obviously wrong (I've tried passing the hash as $hash or %hash,
knowing that those shouldn't work, and they didn't, but I still don't
understand why \%hash is not considered an "HVPtr").
Thanks in advance for any help.
Berend
------------------------------
Date: Wed, 09 Sep 1998 02:26:09 GMT
From: mgjv@comdyn.com.au (Martien Verbruggen)
Subject: Re: Perl Programmer Needed
Message-Id: <5HlJ1.3$eo3.11569@nsw.nnrp.telstra.net>
In article <QgkJ1.2945$JW5.8582203@news.rdc1.md.home.com>,
"Richard" <Richard@WowMe.com> writes:
> Randal,
> Having run many BBS systems, and several discussion servers, I would
> have to say a few things.
I can't believe I have to explain this, but: A BBS is not Usenet.
> 1) If the admin does not want me to post here, he/she has the ability to
> stop it.
Usenet newsgroups, apart from the moderated ones, don't have an
'admin'. They rely on people following the rules. They have been
explained to you.
News admins can cancel posts. But news admins often have better things
to do that to read every post and decide whether they believe it
should be cancelled or not. BEsides, that isn't their job. Besides,
not evere news server has to honour cancels.
The only way this place can stay clean is when people who _should_
know better refrain from posting inappropriately.
Martien
--
Martien Verbruggen |
Webmaster www.tradingpost.com.au | The gene pool could use a little
Commercial Dynamics Pty. Ltd. | chlorine.
NSW, Australia |
------------------------------
Date: 9 Sep 1998 02:46:05 GMT
From: Zenin <zenin@bawdycaste.org>
Subject: Re: Perl Programmer Needed
Message-Id: <905309038.127588@thrush.omix.com>
[posted & mailed]
Richard <Richard@WowMe.com> wrote:
: My message isn't HARDLY SPAM! LOL, that is one hell of a stretch!
Nore did I claim it was.
I was simply comparing your logic that if there were people
that appreciated your post it must be "ok", to the logic of
the spamer that argues if a few people appreciate the spam
that it must be "ok".
--
-Zenin (zenin@archive.rhps.org) From The Blue Camel we learn:
BSD: A psychoactive drug, popular in the 80s, probably developed at UC
Berkeley or thereabouts. Similar in many ways to the prescription-only
medication called "System V", but infinitely more useful. (Or, at least,
more fun.) The full chemical name is "Berkeley Standard Distribution".
------------------------------
Date: 9 Sep 1998 02:52:09 GMT
From: Zenin <zenin@bawdycaste.org>
Subject: Re: Perl Programmer Needed
Message-Id: <905309401.792487@thrush.omix.com>
birgitt@my-dejanews.com wrote:
>snip<
: so very obvious, that almost no one answered questions publicl
: on the list anymore, but only privately, thus trying to find
: paying customers they could consult and avoiding to raise their
: own competing experts by "giving away" too much of their knowledge
: to the open list.
>snip<
Ironically, I was offered the interview for my current position
explicitly because of the posts I had made to this and other
discussion groups. :-)
That "knowledge" they so strongly guarded I've found to be my
best resume.
--
-Zenin (zenin@archive.rhps.org) From The Blue Camel we learn:
BSD: A psychoactive drug, popular in the 80s, probably developed at UC
Berkeley or thereabouts. Similar in many ways to the prescription-only
medication called "System V", but infinitely more useful. (Or, at least,
more fun.) The full chemical name is "Berkeley Standard Distribution".
------------------------------
Date: 9 Sep 1998 13:19:50 +1000
From: dformosa@zeta.org.au (David Formosa)
Subject: Re: Perl Programmer Needed
Message-Id: <6t4s4m$h7n$1@godzilla.zeta.org.au>
In <QgkJ1.2945$JW5.8582203@news.rdc1.md.home.com> "Richard" <Richard@WowMe.com> writes:
>Randal,
> Having run many BBS systems, and several discussion servers, I would
>have to say a few things.
>1) If the admin does not want me to post here, he/she has the ability to
>stop it.
This is usenet, there is no real centrilsed admin.
>2) If my message was that bad, it would have been deleted by the admin
No it wouldn't. No one is authorised to delete messages in newsgroups
based on there contents.
------------------------------
Date: 9 Sep 1998 04:00:52 GMT
From: abigail@fnx.com (Abigail)
Subject: Re: Perl Programmer Needed
Message-Id: <6t4uhk$87s$1@client3.news.psi.net>
Richard (Richard@WowMe.com) wrote on MDCCCXXXV September MCMXCIII in
<URL: news:QgkJ1.2945$JW5.8582203@news.rdc1.md.home.com>:
++ Randal,
++ Having run many BBS systems, and several discussion servers, I would
++ have to say a few things.
++ 1) If the admin does not want me to post here, he/she has the ability to
++ stop it.
You lack some essential cluons when it comes to the mechanics of how
this group (and a couple of ten thousand other groups) works.
Go home and watch teletubbies.
Abigail
--
perl -wle 'print "Prime" if (1 x shift) !~ /^1?$|^(11+?)\1+$/'
------------------------------
Date: Wed, 09 Sep 1998 04:49:44 GMT
From: "Richard" <Richard@WowMe.com>
Subject: Re: Perl Programmer Needed
Message-Id: <INnJ1.2958$JW5.8690709@news.rdc1.md.home.com>
I realize the difference, I was trying to make a pint with as few words as
possible. I agree that it is our responsibility to keep things clean here.
that is kind of my point though, Among all of us here in this thread, we
can't agree on what fits that criteria. I think we all can agree on SPAM,
etc. as being far on the outside of acceptable, but this is not such a clear
cut animal, if it was, this conversation would have died out a long time
ago.
However, I think this thread is getting too long and IS becoming more of a
burden on this newsgroup. I will say this:
1) I am impressed by the maturity level that almost everyone involved in
this conversation has shown. With only a few exceptions, including myself
and Randal in the beginning of this thread. We were both out of line in our
original messages to each other. There is no excuse for that, but I do want
to apologize. No one has brought that up against me, but it should have
been brought up, so I will bring it up.
2) I am considering hosting a newsgroup to discuss this issue if anyone is
interested. Perhaps together we can formulate new guidelines to submit for
how these types of issues should be handled by newsgroup users. It is
apparent that the issue is certainly undecided from the users standpoint.
If you would be interested in this, please reply to me via email, vs.
continuing to plague this newsgroup with our crap.
Thank you all for the feedback, both positive and negative,
Richard
Martien Verbruggen wrote in message
<5HlJ1.3$eo3.11569@nsw.nnrp.telstra.net>...
>In article <QgkJ1.2945$JW5.8582203@news.rdc1.md.home.com>,
> "Richard" <Richard@WowMe.com> writes:
>> Randal,
>> Having run many BBS systems, and several discussion servers, I would
>> have to say a few things.
>
>I can't believe I have to explain this, but: A BBS is not Usenet.
>
>> 1) If the admin does not want me to post here, he/she has the ability to
>> stop it.
>
>Usenet newsgroups, apart from the moderated ones, don't have an
>'admin'. They rely on people following the rules. They have been
>explained to you.
>
>News admins can cancel posts. But news admins often have better things
>to do that to read every post and decide whether they believe it
>should be cancelled or not. BEsides, that isn't their job. Besides,
>not evere news server has to honour cancels.
>
>The only way this place can stay clean is when people who _should_
>know better refrain from posting inappropriately.
>
>Martien
>--
>Martien Verbruggen |
>Webmaster www.tradingpost.com.au | The gene pool could use a little
>Commercial Dynamics Pty. Ltd. | chlorine.
>NSW, Australia |
------------------------------
Date: Wed, 09 Sep 1998 04:51:05 GMT
From: "Richard" <Richard@WowMe.com>
Subject: Re: Perl Programmer Needed
Message-Id: <ZOnJ1.2959$JW5.8691353@news.rdc1.md.home.com>
I see. OK
Among all of us here in this thread, we can't agree on what fits that
criteria. I think we all can agree on SPAM, etc. as being far on the
outside of acceptable, but this is not such a clear cut animal, if it was,
this conversation would have died out a long time ago.
However, I think this thread is getting too long and IS becoming more of a
burden on this newsgroup. I will say this:
1) I am impressed by the maturity level that almost everyone involved in
this conversation has shown. With only a few exceptions, including myself
and Randal in the beginning of this thread. We were both out of line in our
original messages to each other. There is no excuse for that, but I do want
to apologize. No one has brought that up against me, but it should have
been brought up, so I will bring it up.
2) I am considering hosting a newsgroup to discuss this issue if anyone is
interested. Perhaps together we can formulate new guidelines to submit for
how these types of issues should be handled by newsgroup users. It is
apparent that the issue is certainly undecided from the users standpoint.
If you would be interested in this, please reply to me via email, vs.
continuing to plague this newsgroup with our crap.
Thank you all for the feedback, both positive and negative,
Richard
Zenin wrote in message <905309038.127588@thrush.omix.com>...
>[posted & mailed]
>
>Richard <Richard@WowMe.com> wrote:
>: My message isn't HARDLY SPAM! LOL, that is one hell of a stretch!
>
> Nore did I claim it was.
>
> I was simply comparing your logic that if there were people
> that appreciated your post it must be "ok", to the logic of
> the spamer that argues if a few people appreciate the spam
> that it must be "ok".
>
>--
>-Zenin (zenin@archive.rhps.org) From The Blue Camel we learn:
>BSD: A psychoactive drug, popular in the 80s, probably developed at UC
>Berkeley or thereabouts. Similar in many ways to the prescription-only
>medication called "System V", but infinitely more useful. (Or, at least,
>more fun.) The full chemical name is "Berkeley Standard Distribution".
------------------------------
Date: Wed, 09 Sep 1998 01:46:36 GMT
From: nataliep@my-dejanews.com
Subject: Perlscript and ASP: Weird Hash of Request object?
Message-Id: <6t4mls$c1g$1@nnrp1.dejanews.com>
I'm trying to use Perlscript (from ActiveState) on an NT 4.0 (sp3) box with
IIS 4.0 and the latest build of Perlscript.
I'm relatively new to ASPs, so please bear with me.
I'm having serious trouble getting the "Request" object values to translate
properly into something sensible.
The ASP is being called with the following URL string:
http:/blah.blah.org/holder.asp?Department=1234
When I embed a statement in holder.asp like:
Site: <%= $Request->{"Department"} %>
I get the correct value for Department printing on the resulting browser page:
Site: 1234
but when I try to embed it in a SQL statement such as
<% $Sqlquery = "SELECT Menu.* FROM Menu WHERE Menu.Department LIKE
$Request->{'Department'}"; %>
I get garbage when I try to execute or print the statement.
Putting the following in my .asp:
<%= $Sqlquery %>
Results in something like this on the output page:
SELECT Menu.* FROM Menu WHERE Menu.Department LIKE Win32::OLE=HASH(0x150ef528)
I have even tried augmenting the statement to the following:
<% $Sqlquery = "SELECT Menu.* FROM Menu WHERE Menu.Department LIKE " .
$Request->{"Department"}; %>
...with exactly the same results as before.
What on EARTH am I doing wrong? Why am I getting some kind of hash pointer
as opposed to the value of the request object?
-Natalie
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum
------------------------------
Date: 9 Sep 1998 03:01:35 GMT
From: Zenin <zenin@bawdycaste.org>
Subject: Re: Unix and Sendmail Errors
Message-Id: <905309968.266132@thrush.omix.com>
[posted & mailed]
ranson@rlaj.com wrote:
>snip<
: So my question to all the perl hacks out there is: How does one capture
: the error message from sendmail, and print that message to the user?
You need to do somewhat fancy stuff with open3() and friends.
Or, make your life easier and let this do it for you:
ftp://thrush.omix.com/pub/perl/modules/Mail-Sendmail-1.10.tar.gz
FYI however, there is now a module by the same on CPAN, but it
does not have the same functionality. -It has nothing to do
with sendmail, but for whatever reason uses its name...
--
-Zenin (zenin@archive.rhps.org) From The Blue Camel we learn:
BSD: A psychoactive drug, popular in the 80s, probably developed at UC
Berkeley or thereabouts. Similar in many ways to the prescription-only
medication called "System V", but infinitely more useful. (Or, at least,
more fun.) The full chemical name is "Berkeley Standard Distribution".
------------------------------
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 3665
**************************************