[13307] in Perl-Users-Digest
Perl-Users Digest, Issue: 717 Volume: 9
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Sun Sep 5 06:07:17 1999
Date: Sun, 5 Sep 1999 03:05:09 -0700 (PDT)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Perl-Users Digest Sun, 5 Sep 1999 Volume: 9 Number: 717
Today's topics:
"use strict" errors are second-class exceptions? (Sean McAfee)
APi519e.exe and Win98??? <rayj00@ameritech.net>
Re: APi519e.exe and Win98??? <skis@fayettevillenc.com>
Cash for Email <email@cash.com>
Re: CGI in PERL <gellyfish@gellyfish.com>
Checking number of messages <will@localadsSPAM.net>
Re: Checking number of messages (Markus Fischer)
Re: Code Review Please (Ronald E Jeffries)
Re: Code Review Please <uri@sysarch.com>
Re: Filter <agray@infoscience.otago.ac.nz>
Re: Form2Mail without user interaction? <gellyfish@gellyfish.com>
Re: Format a var to 2 decimal places!! <craigsg@newnet.co.uk>
Re: Format a var to 2 decimal places!! <agray@infoscience.otago.ac.nz>
Re: generating a sequential alpha-numeric string <tbornhol@prioritytech.com>
Get the URL from a framed page <ychow@my-deja.com>
Mailform for NT using Blat? <jskeet@cwcom.net>
Re: mod_perl installation Q <jbritain@home.com>
Re: mod_perl installation Q <nguyend7@msu.edu>
Re: mod_perl installation Q <jbritain@home.com>
Perl scripter wanted <mike@fuelfix.com>
Re: Perl vs. Python as 1st language? <meowing@banet.net>
Re: Perl's underlying implementation of Arrays - Low Pr <mpersico@erols.com>
Re: PERL4 vs PERL5 (Abigail)
Re: printing <jbritain@home.com>
testing scripts <petpost@earthlink.net>
Re: Wow! Praises from a Newbie <mpersico@erols.com>
Digest Administrivia (Last modified: 1 Jul 99) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Sun, 05 Sep 1999 01:19:26 GMT
From: mcafee@waits.facilities.med.umich.edu (Sean McAfee)
Subject: "use strict" errors are second-class exceptions?
Message-Id: <yyjA3.4692$J72.1053815@news.itd.umich.edu>
Observe:
----------------------------------------------------------------------
use strict;
eval 'FOO; print "made it\n"';
print "error is '$@'\n";
----------------------------------------------------------------------
The output is:
Bareword "FOO" not allowed while "strict subs" in use at (eval 1) line 2.
error is ''
Apparently strict-related fatals have their error messages output via
warn() instead of going into $@. This can be verified by putting
$SIG{__WARN__} = sub { };
before the eval, above. This removes the "Bareword ..." output line,
leaving only the "error is ''" line. But the error has clearly not just
been demoted to an ordinary warning, since execution stops at that point
("made it" is not printed).
perldiag classifies strictness violations in precisely the same category as
other trappable errors which put errors into $@ when encountered inside an
eval. In my admittedly not-totally-exhaustive perusal of the Perl docs,
I can't find any documented reason for this difference in behavior. Is this
then a bug?
I'm using Perl 5.005_03.
Man, what a bummer. It's rather crucial for the code I'm writing now to be
able to distinguish warnings from fatals.
--
Sean McAfee mcafee@umich.edu
print eval eval eval eval eval eval eval eval eval eval eval eval eval eval
q!q@q#q$q%q^q&q*q-q=q+q|q~q:q? Just Another Perl Hacker ?:~|+=-*&^%$#@!
------------------------------
Date: Sat, 04 Sep 1999 21:33:17 -0500
From: Ray Jender <rayj00@ameritech.net>
Subject: APi519e.exe and Win98???
Message-Id: <37D1D66D.C89E8C8@ameritech.net>
This is a multi-part message in MIME format.
--------------12F6A8B0D9995FF5687431F6
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
I have downloaded twice.
After double clicking on the file APi519.exe,
it goes through the Setup InstallShield then
nothing. Absolutely nothing. My PC is slowed
to a crawl. (PII/400Mhz/128mb ram/12gig hd).
Doing a CNTRL-ALT-DEL shows the file in the
list as well as a file called _inst or similar.
I take it this is the install process.
Anybody have success with build 519 and Win98?
Ray
--------------12F6A8B0D9995FF5687431F6
Content-Type: text/x-vcard; charset=us-ascii;
name="rayj00.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Ray Jender
Content-Disposition: attachment;
filename="rayj00.vcf"
begin:vcard
n:Jender;Ray
x-mozilla-html:FALSE
url:http://4starweb.com
org:4Star Web
adr:;;;Aurora;Illinois;60504;USA
version:2.1
email;internet:rayj00@ameritech.net
fn:Ray
end:vcard
--------------12F6A8B0D9995FF5687431F6--
------------------------------
Date: Sun, 05 Sep 1999 00:12:15 -0400
From: "Richard S. Kowalski" <skis@fayettevillenc.com>
Subject: Re: APi519e.exe and Win98???
Message-Id: <37D1ED9E.A9C186A5@fayettevillenc.com>
Yes. I loaded it on my 486 on "steroids" (as one help desk person told
me) last night. It took a long time and there were periods that it
appeared nothing was happening. It did eventually load, and it works
fine.
Richard
Ray Jender wrote:
> I have downloaded twice.
>
> After double clicking on the file APi519.exe,
> it goes through the Setup InstallShield then
> nothing. Absolutely nothing. My PC is slowed
> to a crawl. (PII/400Mhz/128mb ram/12gig hd).
>
> Doing a CNTRL-ALT-DEL shows the file in the
> list as well as a file called _inst or similar.
> I take it this is the install process.
>
> Anybody have success with build 519 and Win98?
>
> Ray
------------------------------
Date: Sun, 5 Sep 1999 14:03:36 +0900
From: "Email Cash" <email@cash.com>
Subject: Cash for Email
Message-Id: <7qst9o$50c$1@news.tky.3web.ne.jp>
Now hold on before you pass this by! Think about it, all you have to do is>
sign-up and let the information come to you and get paid for receiving it!
It's that easy! Follow this link for more information:
http://www.sendinfo.com/id/47963
Stop searching...Get email about your intersets!
FREE membership...Start earning money right now, today!
Fun and Easy!
------------------------------
Date: 5 Sep 1999 09:44:23 -0000
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: CGI in PERL
Message-Id: <7qte1n$2a3$1@gellyfish.btinternet.com>
On Sat, 04 Sep 1999 01:14:28 GMT pjgratz@my-deja.com wrote:
>
>
>
>> And it's spelled Perl, not PERL.
>
> 'Technically' Nate is correct PERL is an acronym
> for Practical Extraction and Reporting Language.
>
<snip>
>
> Just make sure you know what your talking about
> before you slam someone. (Hope I dont eat my
> words! eheh)
>
Of course if you had read the FAQ then *you* would have known
what you were talking about:
What's the difference between "perl" and "Perl"?
One bit. Oh, you weren't talking ASCII? :-) Larry now
uses "Perl" to signify the language proper and "perl" the
implementation of it, i.e. the current interpreter. Hence
Tom's quip that "Nothing but perl can parse Perl." You
may or may not choose to follow this usage. For example,
parallelism means "awk and perl" and "Python and Perl"
look ok, while "awk and Perl" and "Python and perl" do
not.
/J\
--
Jonathan Stowe <jns@gellyfish.com>
Some of your questions answered:
<URL:http://www.btinternet.com/~gellyfish/resources/wwwfaq.htm>
Hastings: <URL:http://www.newhoo.com/Regional/UK/England/East_Sussex/Hastings>
------------------------------
Date: Sat, 4 Sep 1999 23:06:19 +0100
From: "WL" <will@localadsSPAM.net>
Subject: Checking number of messages
Message-Id: <7qs57k$j99$1@uranium.btinternet.com>
Hi,
I want to do something very simple: have a perl script that will log into my
mail account (on same server - usr/home/myname), check how many messages
there are, and email another account.
What code would do this?
Thanks,
Will
------------------------------
Date: 5 Sep 1999 00:35:21 GMT
From: mfischer@josefine.ben.tuwien.ac.at (Markus Fischer)
Subject: Re: Checking number of messages
Message-Id: <slrn7t3em9.jsk.mfischer@josefine.ben.tuwien.ac.at>
In article <7qs57k$j99$1@uranium.btinternet.com>, WL wrote:
>I want to do something very simple: have a perl script that will log into my
>mail account (on same server - usr/home/myname), check how many messages
>there are, and email another account.
how about :
rsh -l username host frm -s new|wc -l|mail user@other.account
Of course I would give ssh more preference than rsh.
kind regards,
Markus
--
Speaking mutt/vim/slrn/screen/perl/html/php/perl/sgml/bash/eperl.
------------------------------
Date: Sun, 05 Sep 1999 01:57:21 GMT
From: ronERASEjeffries@ERASEacm.org (Ronald E Jeffries)
Subject: Re: Code Review Please
Message-Id: <37d1cd50.95919732@news.det.ameritech.net>
On 04 Sep 1999 12:25:38 -0400, Uri Guttman <uri@sysarch.com> wrote
helpful suggestions.
Thanks! I learned a couple of things I hadn't picked up yet:
1. the use of local on a file handle, which I should have seen.
Related question: would "my" be sufficient?
2. The reading of the whole file with the $/ trick.
I combined this with Randal's suggestion about using HTML::HeadParser.
I couldn't make his example work, but combining yours and his I went
forward!
Thanks (and thanks to Randal)
Ron Jeffries
http://www.XProgramming.com
Disclaimer: I could be wrong -- but I'm not.
(Eagles, "Victim of Love")
------------------------------
Date: 05 Sep 1999 02:24:36 -0400
From: Uri Guttman <uri@sysarch.com>
Subject: Re: Code Review Please
Message-Id: <x7yaelooyj.fsf@home.sysarch.com>
>>>>> "REJ" == Ronald E Jeffries <ronERASEjeffries@ERASEacm.org> writes:
REJ> On 04 Sep 1999 12:25:38 -0400, Uri Guttman <uri@sysarch.com>
REJ> wrote helpful suggestions.
REJ> Thanks! I learned a couple of things I hadn't picked up yet:
REJ> 1. the use of local on a file handle, which I should have seen.
REJ> Related question: would "my" be sufficient?
you can't my a typeglob. you can only localize it and that is the only
way to keep a named file handle private. there are other ways to get
private file handles but this is fine for a basic sub.
uri
--
Uri Guttman ----------------- SYStems ARCHitecture and Software Engineering
uri@sysarch.com --------------------------- Perl, Internet, UNIX Consulting
Have Perl, Will Travel ----------------------------- http://www.sysarch.com
The Best Search Engine on the Net ------------- http://www.northernlight.com
"F**king Windows 98", said the general in South Park before shooting Bill.
------------------------------
Date: 05 Sep 1999 14:25:20 +1200
From: Andrew Gray <agray@infoscience.otago.ac.nz>
Subject: Re: Filter
Message-Id: <uwvu6nlgv.fsf@infoscience.otago.ac.nz>
jimtaylor5@aol.com (Jimtaylor5) writes:
> I am writing a childrens program and I need to filter out at least
> some offensive words. Of course I know how to match with =~/***/ but
> the problem I am having is this also filters out words like pass and
> assimilate. Is there a way I can do this that it won't catch these
> words, and words like it for other offensive words? Thanks!
You can use \b in a regexp to indicate a word boundary (any character
that is not alphanumeric or an underscore). The following short
script indicates how this works, but I would recommend you check
"perldoc perlre" for more details. That's a very strong
recommendation.
#!/usr/bin/perl -w
use strict;
foreach my $line (<DATA>) {
if ($line =~/\bass\b/i) {
print "--- That line is censored! ---\n";
}
else {
print $line;
}
}
__DATA__
If we assume that camels are not of earthy origins
then we avoid making asses out of ourselves with regards
to the strange camel-like brass vases found on Mars.
Whatever that means. Click here for some pictures of ass.
Meanwhile on the planet of the camels Assmuthass was pondering
the wisdom of shouting "You ASS" at the Grand Vizier.
produces
If we assume that camels are not of earthy origins
then we avoid making asses out of ourselves with regards
to the strange camel-like brass vases found on Mars.
--- That line is censored! ---
Meanwhile on the planet of the camels Assmuthass was pondering
--- That line is censored! ---
Obviously you could do the same thing on the word level as well,
perhaps substituting asterixes for such words. It would be easier to
store all of your blocked words in an array, or a hash if you wanted
levels of blocking.
Of course you still have the problems of context since most words can
be used in both inoffensive and offensive ways.
Cheers,
Andrew
------------------------------
Date: 5 Sep 1999 09:53:38 -0000
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: Form2Mail without user interaction?
Message-Id: <7qtej2$2a6$1@gellyfish.btinternet.com>
On Sat, 04 Sep 1999 04:12:49 GMT TomTech wrote:
>
> Figured that if one is knowledgable about Perl, then they would first
> have a very solid understanding of HTML and page design in general.
>
Might I ask what gave rise to this belief so it can adequately countered
in the future ?
/J\
--
Jonathan Stowe <jns@gellyfish.com>
Some of your questions answered:
<URL:http://www.btinternet.com/~gellyfish/resources/wwwfaq.htm>
Hastings: <URL:http://www.newhoo.com/Regional/UK/England/East_Sussex/Hastings>
------------------------------
Date: Sun, 5 Sep 1999 00:35:42 +0100
From: "Craig S Greenhouse" <craigsg@newnet.co.uk>
Subject: Re: Format a var to 2 decimal places!!
Message-Id: <7qsa32$206$1@news7.svr.pol.co.uk>
--
Craig S. Greenhouse BA (Hons) MPTA
Webmaster, The Virtual Pianoshop
http://www.pianoshop.co.uk
The UK's Premier Piano Website
Rich Harris wrote in message
<7qro89$7a4m$1@newssvr04-int.news.prodigy.com>...
>I'm sorry this has got to be a simple one, but I can't do it.
>
>How do you format a variable to 1 or 2 decimal places?
>
Multiply by 10 or 100, integer it, divide by 10 or twenty again :-)
>Also are there any good sites out there which list perl commands etc.
>
>Thanks
>Rich
>
>
------------------------------
Date: 05 Sep 1999 14:36:53 +1200
From: Andrew Gray <agray@infoscience.otago.ac.nz>
Subject: Re: Format a var to 2 decimal places!!
Message-Id: <uso4unkxm.fsf@infoscience.otago.ac.nz>
"Rich Harris" <rich.harris@#prodigy.net> writes:
> I'm sorry this has got to be a simple one, but I can't do it.
> How do you format a variable to 1 or 2 decimal places?
Try "perldoc -f sprintf" at the command line to find out about the
sprintf function.
> Also are there any good sites out there which list perl commands etc.
Start with "perldoc perldoc" and "perldoc perlfaq1" (if you use your
imagination you may find other sets of FAQs as well). You should also
have these in other formats, of which HTML is perhaps the most useful.
Basically, if you have perl you should already have enough
documentation (if it has been installed of course). Books are nice
too, see perlfaq2 for some recommendations.
Cheers,
Andrew
------------------------------
Date: Sun, 05 Sep 1999 03:16:49 GMT
From: "Tim Bornholtz" <tbornhol@prioritytech.com>
Subject: Re: generating a sequential alpha-numeric string
Message-Id: <BglA3.906$mH1.1264@news.rdc1.ne.home.com>
Michael Gold <mgold@bway.net> wrote in message
news:N3bA3.11373$kO6.26072757@news.optonline.net...
> I am looking to generate an eight digit alpha-numeric string ie. w1234567
for
> a web application. It will be a confirmation number that appears on a web
> page and needs to be emailed in the confirmation to the end user.
>
> I have seen random number generators but how do I do an alpha character
and a
> sequential number?
The ++ operator will do this magic for you.
The perlop man page has the following to say about the ++ operator:
The auto-increment operator has a little extra builtin magic to it. If you
increment a variable that is numeric, or that has ever been used in a
numeric context, you get a normal increment. If, however, the variable has
been used in only string contexts since it was set, and has a value that is
not the empty string and matches the pattern /^[a-zA-Z]*[0-9]*$/, the
increment is done as a string, preserving each character within its range,
with carry:
print ++($foo = '99'); # prints '100'
print ++($foo = 'a0'); # prints 'a1'
print ++($foo = 'Az'); # prints 'Ba'
print ++($foo = 'zz'); # prints 'aaa'
The auto-decrement operator is not magical.
hth,
Tim Bornholtz
tbornhol@prioritytech.com
------------------------------
Date: Sun, 05 Sep 1999 07:41:33 GMT
From: CHOW Yik <ychow@my-deja.com>
Subject: Get the URL from a framed page
Message-Id: <7qt6rc$hgh$1@nnrp1.deja.com>
I have a frameset composes of page a.htm and b.htm.
a.htm is an inhouse page while b.htm links to a public search engine.
After a search query is sent on b.htm, it returns to be a result page.
The problem is: how can I get the URL of the result page sent by a form
sumit bottom on a.htm?
The page in concern can be found at:
http://asdf.net/toolbox/review_altavista/assisted.htm
Thanks for any help or advise.
--
CHOW Yik, Cyber Manager
- asdf.NET -
The Internet Business Research Handbook Online
http://asdf.net/welcome.htm
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
------------------------------
Date: Sun, 5 Sep 1999 10:02:57 +0100
From: "JS" <jskeet@cwcom.net>
Subject: Mailform for NT using Blat?
Message-Id: <NhqA3.1405$dh4.50345@news2-hme0>
Does anyone have a mailform script that works on an NT server using Blat?
Any simple form gratefully recieved.
Thanks!
jskeet@cwcom.net
------------------------------
Date: Sun, 05 Sep 1999 07:10:24 GMT
From: Jim Britain <jbritain@home.com>
Subject: Re: mod_perl installation Q
Message-Id: <GBbSN+zc3B1e+S+Bqhj+Lhe1VN+1@4ax.com>
On Fri, 3 Sep 1999 14:08:06 -0400, "clavikal" <clavikal@voicenet.com>
wrote:
>should the apache daemon be running when installing mod_perl?
Well, it depends. What OS?
If Windows, or NT, no, it won't install properly, or completely.
If UNIX, doesn't matter, although server processes may crash, until
the server is restarted. But there's no catastrophic damage as may
occur under Windows/NT.
------------------------------
Date: 5 Sep 1999 07:44:26 GMT
From: Dan Nguyen <nguyend7@msu.edu>
Subject: Re: mod_perl installation Q
Message-Id: <7qt70q$r3n$3@msunews.cl.msu.edu>
Jim Britain <jbritain@home.com> wrote:
: On Fri, 3 Sep 1999 14:08:06 -0400, "clavikal" <clavikal@voicenet.com>
: wrote:
:>should the apache daemon be running when installing mod_perl?
: Well, it depends. What OS?
: If Windows, or NT, no, it won't install properly, or completely.
Well you shouldn't run apache under windows in most cases.
: If UNIX, doesn't matter, although server processes may crash, until
: the server is restarted. But there's no catastrophic damage as may
: occur under Windows/NT.
Apache shouldn't crash. It should just continue to run without any
problems. Though you should restart the daemon with the changes to
your config if you actually want mod_perl working.
--
Dan Nguyen | It is with true love as it is with ghosts;
nguyend7@msu.edu | everyone talks of it, but few have seen it.
dnn@debian.org | -Maxime De La Rochefoucauld
25 2F 99 19 6C C9 19 D6 1B 9F F1 E0 E9 10 4C 16
------------------------------
Date: Sun, 05 Sep 1999 09:35:34 GMT
From: Jim Britain <jbritain@home.com>
Subject: Re: mod_perl installation Q
Message-Id: <fDfSN9jZhpCBM77VpYct+NF3ZsvX@4ax.com>
On 5 Sep 1999 07:44:26 GMT, Dan Nguyen <nguyend7@msu.edu> wrote:
>Jim Britain <jbritain@home.com> wrote:
>: On Fri, 3 Sep 1999 14:08:06 -0400, "clavikal" <clavikal@voicenet.com>
>: wrote:
>
>:>should the apache daemon be running when installing mod_perl?
>
>: Well, it depends. What OS?
>
>: If Windows, or NT, no, it won't install properly, or completely.
>Well you shouldn't run apache under windows in most cases.
>
>: If UNIX, doesn't matter, although server processes may crash, until
>: the server is restarted. But there's no catastrophic damage as may
>: occur under Windows/NT.
>
>Apache shouldn't crash. It should just continue to run without any
>problems. Though you should restart the daemon with the changes to
>your config if you actually want mod_perl working.
There's weird file locking in Windows stuff that will sometimes
prevent writing to a file that is in use -- therefore the install
portion of the update may fail on some .dll files (I don't know in
this instance whether or not it involves any .dll files, but I assume
it does, since more likely than not it is being installed embedded).
------------------------------
Date: Sun, 05 Sep 1999 11:46:21 +0200
From: Mike <mike@fuelfix.com>
Subject: Perl scripter wanted
Message-Id: <37D23BED.9090346@fuelfix.com>
I'm looking for for Perl programmers for a couple of smaller web based
projects, intermediate or beginners welcome. Thanks, Mike
------------------------------
Date: 04 Sep 1999 16:50:27 -0400
From: meow <meowing@banet.net>
Subject: Re: Perl vs. Python as 1st language?
Message-Id: <87zoz2v1t8.fsf@slip-32-100-244-239.ma.us.ibm.net>
John Callender <jbc@shell2.la.best.com> wrote:
> Apologies in advance for the done-to-death topic.
This is not a good newsgroup for discussing this.
If you want to discuss Guido's proposal, comp.lang.python would be
much more appropriate than here.
Better, if you want to discuss what is the best language for teaching
people how to program, there is a nice, neutral, quiet group called
comp.edu which would be great for this kind of discussion.
Here, it will only degenerate into advocacy.
Followups.
------------------------------
Date: Sat, 04 Sep 1999 21:27:06 -0400
From: "Matthew O. Persico" <mpersico@erols.com>
Subject: Re: Perl's underlying implementation of Arrays - Low Priority
Message-Id: <37D1C6EA.5A478277@erols.com>
Gabor wrote:
>
> In comp.lang.perl.misc, Nick Read <nickread@primus.com.au> wrote :
> # Hey all,
> #
> # This is to all those people out there who have fiddled with Perl's innards
> # and know how it's data structures are implemented.
> #
> # Now I assume that since Perl's arrays are dynamic (grow/shrink) they are
> # probably implemented as some form of linked-list in the underlying C code.
>
> Why? Linked lists are horrible data structures for the most part.
> It's easy to implement growing and shrinking arrays.
I haven't personally used linked lists in 'C' since my first programming
job. It's 'C'; malloc up a block, realloc to upsize it, ignore the tail
when downsizing in case you have to upsize again. Suggest you get Advanced
Perl Programming from O'Reilly ISBN 1 56592 220 4 and read chapter 20
--
Matthew O. Persico
You'll have to pry my Emacs from my cold dead oversized
control-pressing left pinky finger. -- Randal L. Schwartz
------------------------------
Date: 4 Sep 1999 15:07:25 -0500
From: abigail@delanet.com (Abigail)
Subject: Re: PERL4 vs PERL5
Message-Id: <slrn7t2v59.dsn.abigail@alexandra.delanet.com>
Natalie Murphy (nmurphy708@earthlink.net) wrote on MMCXCV September
MCMXCIII in <URL:news:37D1459C.A5A1EFE4@earthlink.net>:
'' What's a good reference to understand the differences between PERL4 and
'' PERL5?
Biology. Dinosaurs vs kangaroos. One has been dead for a long, long time,
and the other is alive and kicking.
'' Can they run at the same time on the same machine?
Yes.
Abigail
--
perl -e '* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
/ / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / /
% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %;
BEGIN {% % = ($ _ = " " => print "Just Another Perl Hacker\n")}'
-----------== Posted via Newsfeeds.Com, Uncensored Usenet News ==----------
http://www.newsfeeds.com The Largest Usenet Servers in the World!
------== Over 73,000 Newsgroups - Including Dedicated Binaries Servers ==-----
------------------------------
Date: Sun, 05 Sep 1999 06:19:47 GMT
From: Jim Britain <jbritain@home.com>
Subject: Re: printing
Message-Id: <mwrSN9X2YQvvwttHZumprg7E3eBR@4ax.com>
On Sat, 04 Sep 1999 01:30:42 GMT, burt@ici.net (Burt lewis) wrote:
>I looked into this also and hit a dead end. I even tried to embed page break
>escape characters without luck. Printing efficiency seems to be lacking yet in
>HTML.
>
>Burt Lewis
>
>In article <7qoek2$9js$1@nnrp1.deja.com>, dgold1@my-deja.com says...
>>
>>Is there a way to include printer control characters in an HTML doc. I
>>need to force page breaks, adjust headers and footers while printing
>>some pages. I am using a PERL cgi-script to generate the HTML. I have
>>tried counting lines, characters, etc... but depending on what is being
>>printing the counts are off.
>>
>>Any ideas?
There's only 1 way to do a page break with HTML. End the document
with:
</BODY></HTML>
That's the only page break you get.
I think you're trying to publish in the wrong format. Take a look at
PDF documents, if you want to do page breaks.
(which has nothing to do with Perl, either)
------------------------------
Date: Sun, 05 Sep 1999 01:52:52 -0700
From: PPost Webmaster <petpost@earthlink.net>
Subject: testing scripts
Message-Id: <37D22F62.29F4E667@earthlink.net>
Hi,
I have a newbie question. I have just written a Perl script and
uploaded it into my cgi-bin on the server. Can I test this script
without having to put together an HTML page that corresponds with it?
And if so, how?
Thanks,
S.P.
------------------------------
Date: Sat, 04 Sep 1999 21:31:27 -0400
From: "Matthew O. Persico" <mpersico@erols.com>
Subject: Re: Wow! Praises from a Newbie
Message-Id: <37D1C7EF.6EE99548@erols.com>
robert_kolker@hotmail.com wrote:
>
> After nibbling around the edges of PERL for several months I have
> finally gotten down to doing some substantial programming in the
> language.
>
> Even though I am a rank Newbie, I have been able to write some
> "quick and dirty" utilities in under 5 minutes that would have taken
> an hour to write in a programn language such as C, C++ or Java.
>
> Larry Wall, and all the programmers whose creativity he has help
> unleash are True Geniuses. It is such a damn shame that Wall and
> his collegues have made only a fraction of the money that the
> Bogoid Billionaire Bill Gates has made producing pure dreck.
>
> All praises to the real producers such as Wall and all the programmers
> who have contributed useful modules that make my life very much
> easier.
>
> Bob Kolker
>
> Sent via Deja.com http://www.deja.com/
> Share what you know. Learn what you don't.
Yep, that's exactly the same feeling I got on the day that I finally
grokked $,@,%. I call it the Epiphany Effect. Wait until you start playing
with arrays, hashes and references unto. My conclusion is that 'C' is great
for writting:
Unix/Linux/The OS
Perl
XEmacs guts.
Otherwise, I assume Perl is best, until it is proven not to be.
--
Matthew O. Persico
You'll have to pry my Emacs from my cold dead oversized
control-pressing left pinky finger. -- Randal L. Schwartz
------------------------------
Date: 1 Jul 99 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Digest Administrivia (Last modified: 1 Jul 99)
Message-Id: <null>
Administrivia:
The Perl-Users Digest is a retransmission of the USENET newsgroup
comp.lang.perl.misc. For subscription or unsubscription requests, send
the single line:
subscribe perl-users
or:
unsubscribe perl-users
to almanac@ruby.oce.orst.edu.
To submit articles to comp.lang.perl.misc (and this Digest), send your
article to perl-users@ruby.oce.orst.edu.
To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.
To request back copies (available for a week or so), send your request
to almanac@ruby.oce.orst.edu with the command "send perl-users x.y",
where x is the volume number and y is the issue number.
The Meta-FAQ, an article containing information about the FAQ, is
available by requesting "send perl-users meta-faq" from
almanac@ruby.oce.orst.edu. The real FAQ, as it appeared last in the
newsgroup, can be retrieved with the request "send perl-users FAQ" from
almanac@ruby.oce.orst.edu. 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" from
almanac@ruby.oce.orst.edu.
For other requests pertaining to the digest, send mail to
perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
sending perl questions to the -request address, I don't have time to
answer them even if I did know the answer.
------------------------------
End of Perl-Users Digest V9 Issue 717
*************************************