[11529] in Perl-Users-Digest
Perl-Users Digest, Issue: 5129 Volume: 8
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Sun Mar 14 01:07:21 1999
Date: Sat, 13 Mar 99 22:00:17 -0800
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Perl-Users Digest Sat, 13 Mar 1999 Volume: 8 Number: 5129
Today's topics:
Accessing Files from another server <lgcl01@es.co.nz>
Array lengths <bwb@dowebpages.com>
Re: Array lengths (Andre L.)
Bit vectors <prauz@sprynet.com>
CGI system call on NT with Perl <ttj@OCSA.adm.NCTU.edu.tw>
Re: debugger mystery... <mpersico@bestweb.net>
Direct memory access via Perl? <jjeff1@nycap.rr.com>
Re: does perl discourage obfuscated code? (was Re: Perl <admin@asarian-host.org>
Help- query_string olmert@netvision.net.il
localtime <webmaster@momsathome.on.ca>
Re: Log File's Contents Get Erased! (Tad McClellan)
Navigation Bar? (newbie question) <KamiBot@rotfl.com>
need cgi application <janko@bellay.com>
Re: need help installing Perl on IRIX 6.3 <tedshieh@monmouth.com>
Re: Net DNS nodule (Michael Fuhr)
newbie: how do I read in binary file, modify bytes and (Joe)
Re: PGP encryt script that does NOT USE A TEMP FILE (Michael Budash)
Processing a users mailbox (Scott)
Re: ref returned by sub - how to use it? <thrase@slip.net>
Re: Sending a Hotmail email <bgarrett@hamilton.net>
Re: Sending a Hotmail email <witless@my-dejanews.com>
Re: Testing CGI scripts on a standalone (Jim and Paula)
Re: Using the print << command <dewitt@jlab.org>
Re: Using the print << command ran@netgate.net
Special: Digest Administrivia (Last modified: 12 Dec 98 (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Sun, 14 Mar 1999 05:36:09 +1300
From: "Christopher Fairbairn" <lgcl01@es.co.nz>
Subject: Accessing Files from another server
Message-Id: <921374020.275538@inv.ihug.co.nz>
Hi,
I have a slight problem. I am wanting to make a little "search engine" which
will search through all the *.html files on my website and return links to
any files which contain a specific string or regex.
Sounds easy? Well thats because it is until I tell you that my "search
engine" script has to reside on another server than the one with all the
html files.
Why is this the case? Well I have access to two webservers one with CGI and
one with out CGI access. I can't use the one with CGI as it already has a
project on it which is no removable (ie people associate it with url) and if
I place the website on the server without CGI I can't use a CGI script to
search it.
The problem I keep comming up against is that to search I use GREP on each
individual file (I know its slow but its a very small website) but GREP
won't accept a file from another server, it wants a local file.
If I place the CGI script on the server with CGI and PERL I can't access the
web pages stored on the other web server.
Is there any way I can get around this?
Thanks,
Christopher Fairbairn.
------------------------------
Date: Sat, 13 Mar 1999 18:55:23 -0600
From: Bill Binkley <bwb@dowebpages.com>
Subject: Array lengths
Message-Id: <36EB08FB.DC1F54B@dowebpages.com>
@ppw = ();
@ppw[0]=();
$ppw[0][0]="adm\/";
$ppw[0][1]="adm.htm";
$ppw[0][2]="detail.htm";
$ppw[0][3]="help.htm";
@ppw[1]=();
$ppw[1][0]="all\/";
Length of @ppw can be obtained with $#ppw
Is there a corresponding way to get the length of $#ppw[0] and
$#ppw[1]
Thanks
Bill
Go to http://www.dowebpages.com/aaa/mkg0.htm
for an advanced application.
------------------------------
Date: Sat, 13 Mar 1999 22:05:31 -0500
From: alecler@cam.org (Andre L.)
Subject: Re: Array lengths
Message-Id: <alecler-1303992205310001@dialup-533.hip.cam.org>
In article <36EB08FB.DC1F54B@dowebpages.com>, Bill Binkley
<bwb@dowebpages.com> wrote:
> @ppw = ();
> @ppw[0]=();
> $ppw[0][0]="adm\/";
> $ppw[0][1]="adm.htm";
> $ppw[0][2]="detail.htm";
> $ppw[0][3]="help.htm";
> @ppw[1]=();
> $ppw[1][0]="all\/";
>
> Length of @ppw can be obtained with $#ppw
Actually, $#ppw is the value of the index of the last element in @ppw;
usually the number of elements minus 1.
To get the length of the array, use scalar @ppw.
> Is there a corresponding way to get the length of $#ppw[0] and
> $#ppw[1]
That would be scalar @{$ppw[0]}.
The last index of that array would be $#{$ppw[0]}.
HTH,
Andre
------------------------------
Date: Sun, 14 Mar 1999 03:46:59 +0000
From: prauz <prauz@sprynet.com>
Subject: Bit vectors
Message-Id: <36EB3132.9D87C99E@sprynet.com>
Hi,
I saw at amazon.com an interview with Tom Christiansen and he mentioned
'bit vectors' as a powerful, but little publicized feature of perl.
Anyone info on them ?
Thanks,
Balazs
------------------------------
Date: 14 Mar 1999 05:00:42 GMT
From: Tan Tek Jau <ttj@OCSA.adm.NCTU.edu.tw>
Subject: CGI system call on NT with Perl
Message-Id: <7cffpq$ekp@news.csie.nctu.edu.tw>
Hi,here is the problem:
I am trying to unzip .zip file using pkunzip on NT
using perl CGI, but fail to do so.
I have read articles that someone has found out using
system call with perl cgi under NT can't create
stdout to perl, they suggest using pipe (|) instead,
but how can I pipe a zip file to pkunzip?
My script can work well under dos prompt(console).
(i.e. C:\perl doit.pl will work properly)
I've been working on this for quite a long time and
there is no way out...
thnx for any help or suggestion
------------------------------
Date: Sun, 14 Mar 1999 04:54:33 GMT
From: "Matthew O. Persico" <mpersico@bestweb.net>
Subject: Re: debugger mystery...
Message-Id: <36EB414C.CEC02B3B@bestweb.net>
Ronald J Kimball wrote:
>
> John Chambers <john.chambers@gte.com> wrote:
>
> > Not harmful? It makes the debugging session utterly worthless
> > and a waste of time. When it happens, I have to abandon the
> > debugger and start adding print statements. If this isn't
> > harmful (to the task of getting the code working), then what
> > would qualify?
>
> Is the execution of the script actually out of order, or is the debugger
> just displaying the wrong line?
>
> --
> _ / ' _ / - aka - rjk@linguist.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."
To my experience, it just displays the wrong line. For example, given:
while (<>) {
# stuff in here
}
my$foo = 6;
The debugger will show the while, the my$foo = 6 and then the first
line in the loop. Sometimes it jumps to the closing brace and not
the line following it. Again, it is annoying, but it is a
visual only - the right code gets executed in the desired order.
--
Matthew O. Persico
http://www.bestweb.net/~mpersico
------------------------------
Date: Sun, 14 Mar 1999 00:59:49 GMT
From: "Jeff J" <jjeff1@nycap.rr.com>
Subject: Direct memory access via Perl?
Message-Id: <9SDG2.2055$U6.60668@typhoon.nycap.rr.com>
Hi,
I am using Perl to write logon scripts for our Win NT environment. It is far
more flexable than any NT scripting language I have access to, but I have
run into a road block. I am using a Perl2exe compiler to run the script on
the NT machines that do not have Perl for Win32 installed.
The serial number of each PC is stored in a specific memory address. I would
like to get that info with one of my scripts. I haven't been able to find
out if Perl can do this. I am currently using:
$runthis="echo d F000:FFB6 \n q \n | debug.exe";
$temp=qx/$runthis/;
then I parse $temp to get the info returned by the system call to debug.
This works, but for some reason, my logon script won't finish. It appears to
run the very last line of code, and everything is successful, but the script
window does not close, as if the Perl program is still running.
Thanks
Jeff
------------------------------
Date: Sun, 14 Mar 1999 02:58:24 +0100
From: Mark <admin@asarian-host.org>
Subject: Re: does perl discourage obfuscated code? (was Re: Perl evangelism)
Message-Id: <199903140159.SAA07019@asarian-host.org>
Eric The Read wrote in message <xkfhfrqkxwj.fsf@valdemar.col.hp.com>...
>Mark <admin@asarian-host.org> writes:
>>
>> But I think there are two scales here that we should consider: "useless to
>> powerful" vs. "terse and legible".
>
>A scale that runs from "terse" to "legible" is worthless. Consider my
>current favourite bit of perl (don't ask me why, it's just come up a lot
>lately): foreach.
>
>foreach(@array) {
> print;
>}
>
>is a lot terser than
>
>int i;
>for(i=0; i < arraylen; i++) {
> printf("%s", array[i]);
>}
>
>but it's also a lot more legible (to me).
That is because in this case many instructions took the form of one, terse,
equivalent: foreach. That does not detract from my contention that Perl invites
packing instructions together. In fact, it only strengthens my point, in that
Perl itself at times lets a series of already terse instructions go supernova,
and has them implode to one, dense mass the outside world sees as a single
instruction. This one instruction will then, of course, be more readable than
the conglomerate of previous instructions that do the same. But you are
overlooking that Perl, again (or: still,) invites to bind a series of these type
of "imploded" instructions too, so that my notion that Perl invites us to
densify our code still stands.
>> For instance, very powerful instructions tend to be more terse than
>> easier ones.
>
>I'd like to see some evidence for this that's not APL.
>
>This would also depend a lot on what you mean by "powerful". I'm not
>sure it has any inherent meaning, as applied to programming languages, so
>I'd like to understand what you mean by it.
Powerful, from my Assembly language background, is the art of packing many
complex operations into a terse command, be it a single mnemonic, or a line of
code. So, to me, an instruction like "foreach" is far more powerful than, say,
"for(i=0; i < arraylen; i++)". Why? Because the former, though it effectively
does the same, is much more compact.
>> My point being still, that you cannot look at one very dense line of
>> code and call it obfuscate just because your mind is being dazzled by
>> the amount of things that happen in this one line: one is the result of
>> the other.
>
>I'm not sure I understand this sentence. Are you saying that calling
>something obfuscated is the result of your mind being dazzled by the
>amount of things happening in one line? If so, that would go a long way
>towards explaining what you mean by "powerful" above.
>
>But perl doesn't encourage this. Nor does it discourage it. It's simply
>there.
That is where I disagree. Perl does encourage terse coding. Of course the Camel
Book never in so many words incites us to densify our code. But it does,
however, present language tools that make for easy grouping: the encouragement
is therefore implicit, in the same manner that you can state that the existence
of shorthand encourages secretaries to use terse writing.
>> In fact, perl regexs are so powerful that to the
>> newbie mind they will appear to be magical. But if you were to "unroll" such
>> a powerful regex and rewrite it in C, your code would grow by an order of
>> magnitude and would not necessarily be more clear.
>
>More like several orders of magnitude.
>
>I think my main point of disagreement is you seem to be saying perl is
>confusing because you can put many things on a line, but that's okay,
>because it's powerful.
Nope. I neither said Perl is confusing, nor did I make a value-judgement that
it is okay because it is powerful. No, Perl is not okay in spite of being
obfuscate because it is powerful, but because the instruction-density per square
inch is so high, Perl therefore tends to be more terse. It is only less legible
if you do not adjust your reading speed. One is the result of the other: the
denser, terser, the coding (= powerful,) the more it naturally follows that an
unrolled, more descriptive coding makes for easier reading.
Now, my point was, and still is, that you should not only look at Perl, or any
other language, from the "terse and legible" scale, and rank the language solely
on its readability, without realizing that the elevated effort it takes to read
complex instructions is precisely that which makes the instructions so powerful.
- Mark
System Administrator Asarian-host.org
--
For more information about this posting service, contact:
help@asarian-host.org -- for info about our services
admin@asarian-host.org -- for the server's administrator
nclark@asarian-host.org -- for our PR manager
irchelper@asarian-host.org -- for help on irc matters
If you want an anonymous account, visit our sign-up page:
http://asarian-host.org/emailform.html
------------------------------
Date: Sun, 14 Mar 1999 03:12:12 GMT
From: olmert@netvision.net.il
Subject: Help- query_string
Message-Id: <7cf9e7$n29$1@nnrp1.dejanews.com>
Hi
I need to pass parameters to a CGI using the GET method. Can any body please
send me a function that takes the query string and identifies the variables in
it? I need to make use of these variables during my program, but I do not know
how to make the program identify them.
Please reply to both author and group.
thank you.
Shaul Olmert
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
------------------------------
Date: Sun, 14 Mar 1999 05:19:21 GMT
From: Jennifer <webmaster@momsathome.on.ca>
Subject: localtime
Message-Id: <7cfgsk$sq5$1@nnrp1.dejanews.com>
Could someone tell me what the last element in localtime is?
Thanks
No More 9-5 - http://www.NoMore9-5.com
MAH Designs - http://momsathome.on.ca/design/
Accept Credit Cards Now - http://www.increaseyourprofits.com/visa-mc
Mom's at Home - http://momsathome.on.ca
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
------------------------------
Date: Sat, 13 Mar 1999 13:20:42 -0500
From: tadmc@metronet.com (Tad McClellan)
Subject: Re: Log File's Contents Get Erased!
Message-Id: <q9aec7.tgb.ln@magna.metronet.com>
tatabu@my-dejanews.com wrote:
: I have a CGI program that writes to a log file
: every time one of several HTML pages is loaded. The
: contents of this log file get erased from time to time.
: Is this because several HTML files are calling th CGI program
: simultaneously? How do we remedy this? Can we put
: some kind of lock somewhere?
perldoc -f flock
--
Tad McClellan SGML Consulting
tadmc@metronet.com Perl programming
Fort Worth, Texas
------------------------------
Date: Sun, 14 Mar 1999 00:47:16 GMT
From: Vice Admiral Acker <KamiBot@rotfl.com>
Subject: Navigation Bar? (newbie question)
Message-Id: <7cf0ui$gec$1@nnrp1.dejanews.com>
Is there a way to use CGI to generate a left-hand navigation bar, and then a
way to include the text from another source, by having ONE cgi and then just
linking it up?
.---------------------------.-----------------------------------.
| Vice Admiral Acker | mailto:ViceAdmiralAcker@rotfl.com |
| "Life's short, have fun!" | |
'---------------------------'-----------------------------------'
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
------------------------------
Date: Sun, 14 Mar 1999 01:22:51 +0100
From: Ja NE <janko@bellay.com>
Subject: need cgi application
Message-Id: <36EB0153.CC249A05@bellay.com>
Hi. As 1st, I would like to apologize on my bad English: sorry.
2nd, don't kill me if the question is too long, I just wanna make
question clear.
3th - here is my problem:
I'm running small site "Cable Release", it is a photo-zine, and I would
like to put on-line my collection of recipes (for photography
developers, fixer baths and so on). I have that recipes in FileMaker
database and... what now?
My site is running on linux web server with Perl 5.something, so I made
almost 3 weeks search on free cgi sites, but I just couldn't find
anything what will be easy to use (for non-programer like me).
I would like to know if someone can tell me for such cgi application or
if someone can make it? I have just one friend programer, and he told me
that that should be a "pace of cake"... but he is working with c++...
Well here is how my database looks:
name_of_firm_ | name_of_chemistry
chemical1 | xx_gram
chemical2 | xx_gram
chemical3 | xx_gram
chemical4 | xx_gram
chemical5 | xx_gram
chemical6 | xx_gram
chemical7 | xx_gram
chemical8 | xx_gram
water | xxx_ml
kind_of | how_to_use_it...
or:
Fotokemika | FR-4
Metol | 2g
Na sulfit | 72g
Hidrokinon | 9
Na karbonat | 48
KBr | 4
H2O | 1000
positiv | neutral black tone developer, 2-4 min. in 20....
well, all what user needs is few simple searches (name of firm, name of
dev. kind of... including show all). Cgi-app may or may not show blank
fields... if I can get some working... I don't care much for blank
fields. There is no need of on-line editing of dbase, no need for
passwords, nothing... (I found plenty of powerful apps, but r too
complex for me - don't tell me to make one small from big, I'w tried,
and... huh:))
What can I offer for Help? Link back, name on my page... hmm, I'm
spending too much already on that site, and I don't think I can pay
someone 4 that job... And I believe that someone who knows that job can
write that just as I can make 4-5 pages "big" site, or scan few slides ;-)))
oh, one more think - I would like to make that database good looking -
so, will be nice if that can be "pre-layouted" in HTML...
M I asking too much?
Tnx on anything
--
Ja NE (Isn't "Jane")
--
go to:
www.bellay.com
tnx ;-)
http://bellay.com/fotozine
------------------------------
Date: Sat, 13 Mar 1999 20:13:40 -0500
From: "Ted Shieh" <tedshieh@monmouth.com>
Subject: Re: need help installing Perl on IRIX 6.3
Message-Id: <7cf1ug$imq$1@news.monmouth.com>
Thanks a ton.
Does perl.com link there? I didn't see a link.
Ted
Not speaking for the company that advised Exxon on the
largest M&A transaction in history ($75.3 B purchase)
Programming Language Comparison,
http://odin.bio.sunysb.edu/tedshieh/software
New: Java and Perl source code obfuscators
Alastair wrote in message ...
>Ted Shieh <tedshieh@monmouth.com> wrote:
>>Can anyone tell me what to try next? I find it ironic that it is so much
>>easier to install Perl on Windows; I just had to download the binaries.
If
>>someone has already compiled the binaries for Perl on IRIX 6.3 and can
mail
>>them to me, please contact me.
>
>I believe Perl 5.005 is available from SGI - packaged up for trivial
>installation ;
>
>http://freeware.sgi.com/1999Feb/index-by-alpha.html
>
>Lots of other good things there too.
>
>HTH.
>
>--
>
>Alastair
>work : alastair@psoft.co.uk
>home : alastair@calliope.demon.co.uk
------------------------------
Date: 13 Mar 1999 20:31:45 -0700
From: mfuhr@dimensional.com (Michael Fuhr)
Subject: Re: Net DNS nodule
Message-Id: <7cfaj1$m6q@flatland.dimensional.com>
khanda@hotmail.com writes:
> Does anybody know how to get names from IP addresses using the above module. I
> would appreciate a sample code.
Create a resolver object and issue a query for an IP address:
#!/usr/bin/perl -w
use Net::DNS;
use strict;
my $ip = "204.152.184.101";
my $res = Net::DNS::Resolver->new;
my $ans = $res->query($ip) or die "query failed: ", $res->errorstring;
If the query succeeded, you'll have a set of DNS resource records (RRs)
in the answer section of the response packet. The answer section should
look something like this:
;; ANSWER SECTION (1 record)
101.184.152.204.in-addr.arpa. 3600 IN PTR www.isc.org.
You can get the name by using the "ptrdname" method on RRs of type "PTR":
foreach my $rr ($ans->answer) {
print $rr->ptrdname, "\n" if $rr->type eq "PTR";
}
If you get a CNAME record instead of a PTR record, you'll have to
issue another query. You'll see this for sites using RFC 2317
classless in-addr.arpa delegations.
--
Michael Fuhr
http://www.fuhr.org/~mfuhr/
------------------------------
Date: Sun, 14 Mar 1999 04:51:46 GMT
From: painter2000@Cybernex.Net (Joe)
Subject: newbie: how do I read in binary file, modify bytes and write out?
Message-Id: <7cf4nf$3uf$1@news.cybernex.net>
I checked FAQ and dejanews and haven't seen this discussed. "Programmin Perl"
doesn't really explain it. My goal is to read an MP3 file, analyze the
data, then modify it and write it as a new MP3 file. It seems like a simple
thing to do but HOW DOES ONE DO IT???
Thanks in advance!
Joe
[our email address is 'painter2000@Cybernex.Net' but WITHOUT
the numbers and with all letters lowercase. Very sorry about
that but I am trying to avoid all those spammers.]
------------------------------
Date: Sat, 13 Mar 1999 18:27:54 -0800
From: mbudash@trantracks.com (Michael Budash)
Subject: Re: PGP encryt script that does NOT USE A TEMP FILE
Message-Id: <mbudash-1303991827550001@d19.nas1.napa.sonic.net>
In article <7cen2a$8af$1@nnrp1.dejanews.com>, benquintana@my-dejanews.com wrote:
>I am trying to write a perl script that uses PGP to
>encrypt some text.
cool
>All the example scripts that I find use a clear text
>temp file to invoke PGP and then delete the temp file.
>
>Is it me, or does this seem stupid?
it's not you
>I located a perl module on CPAN, but even that uses
>the temp file method.
>
>I am trying to run pgp with:
>
>+batchmode and -f
>
>but its just not working!!!
not sure how you know that, but let's let that one go for now...
>Any help, or example code would be GREATLY appreciated.
see if this [admittedly incomplete] snippet helps:
# We need a library function
use IPC::Open2;
# Set up the pgp command
# $PGPDIR contains the full path to the pgp binary
# $pgppublic contains the name of the public key to be used
$pgpcmd = "$PGPDIR/pgp -fea $pgppublic 2>&1";
# Open the PGP program for bidirectional I/O
open2(\*READPGP, \*WRITEPGP, $pgpcmd) or die("oops!");
# Send text to be encrypted to PGP
print WRITEPGP "$message";
# Encrypt the data
close(WRITEPGP);
# Get the encrypted data from PGP
undef $/; $mail_message = <READPGP>; $/ = '\n';
close(READPGP);
hth -
--
@-----------------------------@--------------------@
| Michael Budash Consulting | 707-255-5371 |
| Perl, Javascript, Html | 707-258-7800 x7736 |
| Official Extropia Developer | mbudash@sonic.net |
@-----------------------------@--------------------@
------------------------------
Date: Sun, 14 Mar 1999 13:50:14 +1300
From: scott@ncs.co.nz (Scott)
Subject: Processing a users mailbox
Message-Id: <MPG.1155cef054588c95989697@ingate>
I wish to get info from roots mail file under SCO Unix and then delete
that particular email.
Being fairly new to perl I want to write a script that reads in
/usr/spool/mail/root and looks for specific subject lines ( e.g a Compaq
SNMP trap ) processing that email, then perhaps removing it. Has anyone
done something similar. I realise that there could be problems with me
changing the file while unix is writing to it.
Any help would be greatly appreciated.
Cheers Scott
scott@ncs.co.nz
P.S Please email me as well as posting
------------------------------
Date: Sat, 13 Mar 1999 18:06:28 -0800
From: Paul Cameron <thrase@slip.net>
Subject: Re: ref returned by sub - how to use it?
Message-Id: <36EB19A4.551AC2@slip.net>
otis@my-dejanews.com wrote:
> &anotherSub(\&foo());
This will parse a reference to whatever is returned from &foo(), I believe.
You want:
sub foo { return \"This is a ref\n" }
sub bar { print ${$_[0]} }
&bar ( &foo() );
You can rewrite the last line as:
bar ( foo() ); # Or
bar foo;
Paul.
------------------------------
Date: Sat, 13 Mar 1999 20:59:47 -0800
From: Bill Garrett <bgarrett@hamilton.net>
Subject: Re: Sending a Hotmail email
Message-Id: <36EB4240.AFA5B88B@hamilton.net>
You log in and then go to compose
synced wrote:
> hello, this is a perl newsgroup. go find a hotmail help file.
>
> Witless wrote:
> >
> > Can anyone enlighten me as to how I can send an email with a Hotmail account?
> > I've already figured out how to login and look and the Inbox.
> >
> > Thanx
> >
> > If nothing goes wrong on the first run, you must be using some sample
> > code...
> >
> > -----------== Posted via Deja News, The Discussion Network ==----------
> > http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
------------------------------
Date: Sun, 14 Mar 1999 04:22:22 GMT
From: Witless <witless@my-dejanews.com>
Subject: Re: Sending a Hotmail email
Message-Id: <7cfdhp$q7o$1@nnrp1.dejanews.com>
I did not make myself clear. I'm talking about using PERL LWP to post a
Hotmail email and not how to use Hotmail.
In article <36EACCD9.546E@sdf.lonestar.org>,
synced@sdf.lonestar.org wrote:
> hello, this is a perl newsgroup. go find a hotmail help file.
>
> Witless wrote:
> >
> > Can anyone enlighten me as to how I can send an email with a Hotmail
account?
> > I've already figured out how to login and look and the Inbox.
> >
> > Thanx
> >
> > If nothing goes wrong on the first run, you must be using some sample
> > code...
> >
> > -----------== Posted via Deja News, The Discussion Network ==----------
> > http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
>
If nothing goes wrong on the first run, you must be using some sample
code...
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
------------------------------
Date: Sun, 14 Mar 1999 03:44:27 GMT
From: gemhound@gemhound.com (Jim and Paula)
Subject: Re: Testing CGI scripts on a standalone
Message-Id: <36eb300c.14762217@news.primeline.com>
On Sat, 13 Mar 1999 12:00:11 +0000, Doc <Doc@goforit.demon.co.uk>
wrote:
>Hi
>I am new to CGI scripting and am writing a script to produce web pages
>from a database - no problem there. But, I would like to be able to
>test the programme on my PC rather than have to use my provider's
>server! I know that I can run my programme via the command prompt but
>obviously that does not include the browser. How can I run it and see
>the results? (Yes I have run simple programmes from the browser but as
>soon as I include calculations and non-HTML stuff it gets printed on the
>screen and no calcs are done - i.e. it is not run as a porper programme)
>
Here's something I just downloaded from zdnet at
http://hotfiles.zdnet.com/cgi-bin/texis/swlib/hotfiles/info.html?fcode=000MQL&b=
I haven't tried it yet, but it looks like it might do the job:
TinyWeb is a simple way to post HTML content. It's a very small server
for use on Windows 95 or NT. Just make three directories, place the
program in the bin directory, and create a shortcut as described in
the short manual. As long as you have IP running and are attached to
the Internet with a known IP address or are on a network (with IP),
then you have an instant Web server. Any browser can view the site.
TinyWeb even works with CGI, if you compile the code into an EXE or
have Perl installed. Source code is included. Reviewed on Apr 13 1998.
System Requirements Windows 95
Purchase Information
Free
------------------------------
Date: Sat, 13 Mar 1999 18:59:02 -0500
From: Shane Dewitt <dewitt@jlab.org>
Subject: Re: Using the print << command
Message-Id: <36EAFBC5.A5E86FD0@jlab.org>
alastair@solarnet.co.uk wrote:
> Hi all
>
> I'm having a bit of a problem I when I try and use the print
> <<variable command to print HTML I get a error that says PERL cannot
> find the string terminator. This is the code I have. Can anyone spot
> anything I am doing wrong. Also if its not the code causing this
> error can anyone recommend anything.
>
> print <<_HTML_
> <HEAD>
> <TITLE>TEST</TEST>
> <BODY>
> <P>test<P>
> </BODY>
> _HTML_
; # need semicolon if more statements follow
>
>
> Please help as I am going insane sat here looking at this code
>
> Thanks in advance
>
> A;lastair brown
--
Shane Dewitt Email: dewitt@jlab.org
TR 53C Phone: 757-269-7592
------------------------------
Date: 14 Mar 1999 01:45:47 GMT
From: ran@netgate.net
Subject: Re: Using the print << command
Message-Id: <7cf4cb$7vk$1@remarQ.com>
In <36EAFBC5.A5E86FD0@jlab.org>, Shane Dewitt <dewitt@jlab.org> writes:
>alastair@solarnet.co.uk wrote:
>; # need semicolon if more statements follow
>> A;lastair brown
^
Or maybe a little Elmer's Bit Glue to keep them from sliding off the
page...
------------------------------
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 5129
**************************************