[16457] in Perl-Users-Digest

home help back first fref pref prev next nref lref last post

Perl-Users Digest, Issue: 3869 Volume: 9

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Tue Aug 1 09:05:22 2000

Date: Tue, 1 Aug 2000 06:05:10 -0700 (PDT)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Message-Id: <965135109-v9-i3869@ruby.oce.orst.edu>
Content-Type: text

Perl-Users Digest           Tue, 1 Aug 2000     Volume: 9 Number: 3869

Today's topics:
        [Perl] How to find the Perl FAQ <rootbeer&pfaq*finding*@redcat.com>
    Re: APACHE Login name nobull@mail.com
    Re: APACHE Login name <gellyfish@gellyfish.com>
        Creating a PERL Ole object on NT <feargalh@portinfo.co.uk>
        dialing from another computer <hugh.brian@uengineer.com>
    Re: Difference between a .cgi file and a .pl file? (Villy Kruse)
    Re: DOCUMENT_NAME variable -- incompatible on Linux OS? nobull@mail.com
        Help with LWP <seesej@uswest.net>
    Re: Is "exit()" really necessary? (Anno Siegel)
    Re: LWP https 302 Moved Temporarily bkodl@my-deja.com
    Re: POSIX::mktime (Chest Rockwell)
    Re: POSIX::mktime (Chest Rockwell)
        Quote need for a job on auto-page creation <alexwalker@hotmail.com>
    Re: Regular expression (Bernard El-Hagin)
    Re: Remove a blank line nobull@mail.com
    Re: Remove a blank line <cingram-at-pjocs-dot-demon-dot-co-dot-uk>
    Re: RSH to os/2 does not work with backticks tomppa_emoe@my-deja.com
    Re: SMTP servers nobull@mail.com
    Re: SMTP servers <gellyfish@gellyfish.com>
    Re: spliting on caps (newbie) <mauldin@netstorm.net>
        Substituting a string?! <acfernandes@netc.pt>
    Re: Substituting a string?! (Bernard El-Hagin)
    Re: text file to HTML page <flavell@mail.cern.ch>
        Digest Administrivia (Last modified: 16 Sep 99) (Perl-Users-Digest Admin)

----------------------------------------------------------------------

Date: Tue, 01 Aug 2000 10:22:36 GMT
From: Tom Phoenix <rootbeer&pfaq*finding*@redcat.com>
Subject: [Perl] How to find the Perl FAQ
Message-Id: <pfaqmessage965125441.14520@news.teleport.com>

Archive-name: perl-faq/finding-perl-faq
Posting-Frequency: weekly
Last-modified: 29 Apr 2000

[ That "Last-modified:" date above refers to this document, not to the
Perl FAQ itself! The last _major_ update of the Perl FAQ was in Summer
of 1998; of course, ongoing updates are made as needed. ]

For most people, this URL should be all you need in order to find Perl's
Frequently Asked Questions (and answers).

    http://www.cpan.org/doc/FAQs/

Please look over (but never overlook!) the FAQ and related docs before
posting anything to the comp.lang.perl.* family of newsgroups.

For an alternative way to get answers, check out the Perlfaq website.

    http://www.perlfaq.com/

# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # 

Beginning with Perl version 5.004, the Perl distribution itself includes
the Perl FAQ. If everything is pro-Perl-y installed on your system, the
FAQ will be stored alongside the rest of Perl's documentation, and one
of these commands (or your local equivalents) should let you read the FAQ.

    perldoc perlfaq
    man perlfaq

If a recent version of Perl is not properly installed on your system,
you should ask your system administrator or local expert to help. If you
find that a recent Perl distribution is lacking the FAQ or other important
documentation, be sure to complain to that distribution's author.

If you have a web connection, the first and foremost source for all things
Perl, including the FAQ, is the Comprehensive Perl Archive Network (CPAN).
CPAN also includes the Perl source code, pre-compiled binaries for many
platforms, and a large collection of freely usable modules, among its
560_986_526 bytes (give or take a little) of super-cool (give or take
a little) Perl resources.

    http://www.cpan.org/
    http://www.perl.com/CPAN/
    http://www.cpan.org/doc/FAQs/FAQ/html/
    http://www.perl.com/CPAN/doc/FAQs/FAQ/html/

You may wish or need to access CPAN via anonymous FTP. (Within CPAN,
you will find the FAQ in the /doc/FAQs/FAQ directory. If none of these
selected FTP sites is especially good for you, a full list of CPAN sites
is in the SITES file within CPAN.)

    California     ftp://ftp.cdrom.com/pub/perl/CPAN/
    Texas          ftp://ftp.metronet.com/pub/perl/
    South Africa   ftp://ftp.is.co.za/programming/perl/CPAN/
    Japan          ftp://ftp.dti.ad.jp/pub/lang/CPAN/
    Australia      ftp://cpan.topend.com.au/pub/CPAN/
    Netherlands    ftp://ftp.cs.ruu.nl/pub/PERL/CPAN/
    Switzerland    ftp://sunsite.cnlab-switch.ch/mirror/CPAN/
    Chile          ftp://ftp.ing.puc.cl/pub/unix/perl/CPAN/

If you have no connection to the Internet at all (so sad!) you may wish
to purchase one of the commercial Perl distributions on CD-Rom or other
media. Your local bookstore should be able to help you to find one.

# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # 

Comments and suggestions on the contents of this document
are always welcome. Please send them to the author at
<pfaq&finding*comments*@redcat.com>. Of course, comments on
the docs and FAQs mentioned here should go to their respective
maintainers.

Have fun with Perl!

-- 
Tom Phoenix       Perl Training and Hacking       Esperanto
Randal Schwartz Case:     http://www.rahul.net/jeffrey/ovs/


------------------------------

Date: 01 Aug 2000 12:56:19 +0100
From: nobull@mail.com
Subject: Re: APACHE Login name
Message-Id: <u98zuh19gc.fsf@wcl-l.bham.ac.uk>

Mouse <glodalec@yahoo.com> writes:

> both of commands (remote_user(),user_name()) returns empty
> string, even when I am logged thru apache authorization.

Are you sure?  Is it perhaps possible that the CGI script is located
in a directory that's not password resticted?

-- 
     \\   ( )
  .  _\\__[oo
 .__/  \\ /\@
 .  l___\\
  # ll  l\\
 ###LL  LL\\


------------------------------

Date: Tue, 01 Aug 2000 11:33:09 GMT
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: APACHE Login name
Message-Id: <Vzyh5.825$82.36321@news.dircon.co.uk>

On Tue, 01 Aug 2000 11:36:59 +0200, Mouse Wrote:
> Hi !
> 
> I am using CGI module on Unix/Apache server.
> 
> both of commands (remote_user(),user_name()) returns empty
> string, even when I am logged thru apache authorization.
> How can I get login name ?

The variables relating to the authorized user are only set for requests
that are subject to authorization - you have a question about the
configuration of authorization for Apache which should be asked in
comp.infosystems.www.servers.unix

/J\


------------------------------

Date: Tue, 1 Aug 2000 13:44:00 +0100
From: "Feargal Hogan" <feargalh@portinfo.co.uk>
Subject: Creating a PERL Ole object on NT
Message-Id: <8m6gl8$c0n$1@gxsn.com>

Hi

Can anyone help.

I am looking at using PERL to do some string transformations in a set of
text files.

It is obviously the best candidate for the task.

In particular I am looking at using some of the xml/sgml/html modules.

However these transformations are to be run as part of a database
maintenance package on each of about 4-5,000 files.

The database routines are already written and just require integration of
the PERL transformations.

The database will be aware of :
    1. The current file path/name
    2. The destination for the transformed file.

This will all run on NT4.

Is it possible to create a PERL ole object, pass it three variables
    1. a PERL script as a string
    2. The input filename
    3. the output filename

and have it run the script against the supplied filenames.

Does anyone have any template code for situations like this - VB, Delphi,
OPAL

Or some good URL's to try ?

Thanks
--
____________________________________________
Feargal Hogan
Director, I.S.,
Shipping Guides Ltd, 75 Bell Street, Reigate, United Kingdom
Tel: +44 1737 242255    Fax: +44 1737 222449    Telex: 917070 Shipg G
Personal Email: feargalh@portinfo.co.uk
Corporate Email: sgl@portinfo.co.uk
Web Site: http://www.shipping-guides.co.uk/
____________________________________________





------------------------------

Date: Tue, 1 Aug 2000 05:37:36 -0500
From: "Hugh Brian" <hugh.brian@uengineer.com>
Subject: dialing from another computer
Message-Id: <soda30fcdbm173@corp.supernews.com>

I have my two computers networked together at home. Windows internet
connection sharing for some reason is always dialing even when I don't have
any running programs that require a connection to the internet. So I disable
the automatice dialing by selecting "Never Dial a Connection" in the
Connection tab of Internet properties.

What command (eg. `??????.exe`) do I need to issue from the computer that
has no modem to the computer that has the modem to make the modem dial out
to my isp? I hope I have explained myself.

--

Hugh Brian | hugh.brian@uengineer.com | http://www.uengineer.com






------------------------------

Date: 1 Aug 2000 10:10:53 GMT
From: vek@pharmnl.ohout.pharmapartners.nl (Villy Kruse)
Subject: Re: Difference between a .cgi file and a .pl file?
Message-Id: <slrn8od8h4.gr2.vek@pharmnl.ohout.pharmapartners.nl>

On 31 Jul 2000 09:45:15 -0700, Randal L. Schwartz <merlyn@stonehenge.com> wrote:

>
>Yup.  That's OK.  But it's scary when I end up seeing a URL in my
>location bar of "foo.pl" or "index.py" or "whatever.tcl" though.
>Gives away more than it needs to give.
>


In theory you should be able to give your HTML pages the extension .pl
and your perl CGI programs the extension .gif, and have it work with
the proper changes in the apache configuration file.  Would probably
confuse a lot of people.  

On unix systems, once it has been determined that the file is a CGI
program the suffix doesn't matter one way or the other in determining
what program language the CGI program was written in.  MS-Windows may
be a bit different in this respect.



Villy


------------------------------

Date: 01 Aug 2000 12:57:05 +0100
From: nobull@mail.com
Subject: Re: DOCUMENT_NAME variable -- incompatible on Linux OS?
Message-Id: <u966pl19f2.fsf@wcl-l.bham.ac.uk>

danceradio95 <danceradio@rocketmail.com> writes:

> Disclaimer: I am a novice when it comes to understanding Perl and
> Linux. 

This question has nothing to do with Perl or Linux.

It has to do with CGI and extensions to standard CGI implemented by
particular web server software.

DOCUMENT_NAME is not defined by CGI/1.1 (nor draft CGI/1.2).

It is defined by Apache mod_include, see:
http://www.apache.org/docs-1.2/mod/mod_include.html

It will only be defined if the CGI script is invoked through the
server side include mechanism.

To find out what environment variables are part of the standard CGI see:
http://hoohoo.ncsa.uiuc.edu/cgi/env.html

To find out what environment variables are available on your web
server software see the manual for your server.

-- 
     \\   ( )
  .  _\\__[oo
 .__/  \\ /\@
 .  l___\\
  # ll  l\\
 ###LL  LL\\


------------------------------

Date: Tue, 01 Aug 2000 05:45:23 -0700
From: Jeffrey <seesej@uswest.net>
Subject: Help with LWP
Message-Id: <B5AC1473.81AF%seesej@uswest.net>

Hi:
 I am trying to use the LWP:UserAgent module and I am having the following
problem. 

I am getting a code 500 back from any url that I try, but this script will
run correctly from my desktop computer.

When I try to get message (ok,server error,etc) I get an execution error
from the "message" object

"Can't locate auto/URI/URL/http/path_query.al in @INC............."

Problem is I can't find path_query.al anywhere.

My first question is. Why am I getting the code 500 in the first place?
Secondly, what is the path_query.al and if I need it where can I get it.

Thank you in advance for any help
Jeff

I am using Perl5 on Red Hat Linux release 6.2 with Apache.

Here is an excerpt of the code I am attempting to use.

######################################################
# Create a user agent object
use LWP::UserAgent;

$ua = new LWP::UserAgent();
$request = new HTTP::Request('GET','http://www.excite.com/');
$result = $ua->request($request);

$content    = "\ncode .....: ".$result->code;
$content   .= "\nmessage ..: ".$result->message;
$content   .= "\ncontent ..: \n".$result->content;

print $content;
######################################################



------------------------------

Date: 1 Aug 2000 10:59:02 -0000
From: anno4000@lublin.zrz.tu-berlin.de (Anno Siegel)
Subject: Re: Is "exit()" really necessary?
Message-Id: <8m6ahn$fcb$1@lublin.zrz.tu-berlin.de>

Tim <SPAM+indigo@dimensional.com> wrote in comp.lang.perl.misc:
>bart.lateur@skynet.be (Bart Lateur) wrote in

[...]

>Plus there was a CERT advisory this spring concerning a security hole
>if you fail to check the return value of exit.

Huh?  How does this apply?  The return value of exit can only be
checked by a program that calls yours because exit, well, exits.

Anno


------------------------------

Date: Tue, 01 Aug 2000 12:41:55 GMT
From: bkodl@my-deja.com
Subject: Re: LWP https 302 Moved Temporarily
Message-Id: <8m6gii$n5u$1@nnrp1.deja.com>

In article <brian-ya02408000R0108000158300001@news.panix.com>,
  brian@smithrenaud.com (brian d foy) wrote:
> In article <8m4hiq$9ve$1@nnrp1.deja.com>, bkodl@my-deja.com posted:
>
> > Hi, I am having trouble downloading HTTPS files via LWP. I've read
the
> > LWP FAQ and installed Crypt-SSLeay. However, the following script
still
> > results in error "302 Moved Temporarily". I'm using perl 5.005_03
with
> > libwww 5.48 on WinNT 4 Workstation, Service Pack 3. Here is the
script:
>
> > my $URL = 'https://www.nodeworks.com/';  # does not work
>
> what about other https addresses?
>

I tried several other addresses, and none of them worked.


Sent via Deja.com http://www.deja.com/
Before you buy.


------------------------------

Date: Tue, 01 Aug 2000 10:38:42 GMT
From: haaaajo@removethis.dds.nl (Chest Rockwell)
Subject: Re: POSIX::mktime
Message-Id: <3986a861.68630671@news.wirehub.nl>

On Mon, 31 Jul 2000 14:33:09 -0700, Tim Conrow <tim@ipac.caltech.edu>
wrote:

>Chest Rockwell wrote:
>> 
>> Hi there,
>> 
>> I am trying to get the Unix time (nr seconds since 1970) for every day
>> at 00:00 since 2000 (for testing purposes). I am using the mktime
>> function from POSIX in a for loop. But I can't seem to get the $yday
>> (day of the year) argument working. My code looks someting like this:
>> 
>> for ($i=0;$i<366;$i++){
>>         $mytime = mktime(?,?,?,?,?,? etc)
>>         ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) =
>> localtime($mytime)
>
>'man mktime' sez:
>
>"The function ignores the specified contents of the structure members
>tm_wday and tm_yday and recomputes  them  from  the  other information
>in the broken-down time structure."
>
>When I wanted to do something similar, I looked into the modules in the
>'Time::*' hierarchy on CPAN.

I'm using perl on a Windows machine so man doesn't work. Anyway,
thanks to let me know I'm trying something that can't be done.

Ciao!


------------------------------

Date: Tue, 01 Aug 2000 11:14:01 GMT
From: haaaajo@removethis.dds.nl (Chest Rockwell)
Subject: Re: POSIX::mktime
Message-Id: <3986b0ed.70818062@news.wirehub.nl>

On Mon, 31 Jul 2000 13:02:45 GMT, ckeith@clara.net (Colin Keith)
wrote:

>In article <39855b3e.239694843@news.wirehub.nl>, haaaajo@removethis.dds.nl (Chest Rockwell) wrote:
>>Does anyone have a tip?
>
>I've never used mktime() so no. Try adding more months to the following:
>
>#!/usr/bin/perl -w
>use strict;
>use Time::Local;
>
>my(@mon, $d, $m) = (31,29,31,30);
>foreach $m (0..@mon){
>  foreach $d (1..31){
>    last if($d > $mon[$m]);
>    $_ = timelocal(0, 0, 0, $d, $m, 2000);
>    printf("%12d => %s\n", $_, scalar(localtime($_)));
>  }
>}
>
>   946684800 => Sat Jan  1 00:00:00 2000
>   946771200 => Sun Jan  2 00:00:00 2000
>   946857600 => Mon Jan  3 00:00:00 2000
>   946944000 => Tue Jan  4 00:00:00 2000
>   947030400 => Wed Jan  5 00:00:00 2000

Tnx!!


------------------------------

Date: Tue, 1 Aug 2000 12:04:24 +0100
From: "Alex Walker" <alexwalker@hotmail.com>
Subject: Quote need for a job on auto-page creation
Message-Id: <Ibyh5.316$8N1.4947@news6-win.server.ntlworld.com>

Hi,
I need a to obtain a quote for the creation of a fairly simple CGI script. I
have the details written in a word document. E-mail me if you are interested
and I'll send the doc file.
The script involves automatic page creation but it needs custom building as
nothing exists on the internet in the CGI script collection sites.
Regards
Alex Walker








------------------------------

Date: Tue, 01 Aug 2000 10:16:01 GMT
From: bernard.el-hagin@lido-tech.net (Bernard El-Hagin)
Subject: Re: Regular expression
Message-Id: <slrn8od8i2.61h.bernard.el-hagin@gdndev25.lido-tech>

On Tue, 01 Aug 2000 02:24:04 -0700, Chrys
<isc80460NOisSPAM@nus.edu.sg.invalid> wrote:
>Hello,
>I need help for extracting a regex from a line .
>
>how to extract for instance:
>the # 61242194 from the line:
> /usr/data/testing/sid61242194/dt.out
>
>the pattern of the line is always the same.so i've tried to
>use boundary word but it doesnt work.
>I'm new to Perl and I need some guidance.

Read:

perldoc perlre (especially the part about "\d")

Bernard
--
perl -le 'open(JustAnotherPerlHacker,"")or$_="B$!e$!r$!n$!a$!r$!d$!";
print split/No such file or directory/;'


------------------------------

Date: 01 Aug 2000 12:56:35 +0100
From: nobull@mail.com
Subject: Re: Remove a blank line
Message-Id: <u97la119fw.fsf@wcl-l.bham.ac.uk>

Rashid Saharudin <rashid1218@hotmail.com> writes:

> I would like to remove blank lines and command lines in my text file
> and then would like to save
> that file as a new file.

See the section of the FAQ entitled "How do I change one line in a
file/delete a line in a file...."

> I managed to remove the blank lines but I
> could not delete/ remove a
> sentence such as 'commands for ........

How did you try?

-- 
     \\   ( )
  .  _\\__[oo
 .__/  \\ /\@
 .  l___\\
  # ll  l\\
 ###LL  LL\\


------------------------------

Date: Tue, 1 Aug 2000 14:03:38 +0100
From: "Clyde Ingram" <cingram-at-pjocs-dot-demon-dot-co-dot-uk>
Subject: Re: Remove a blank line
Message-Id: <965134690.13746.0.nnrp-07.9e98e5bc@news.demon.co.uk>

Rashid,

You do not explain what is a command line.
If you mean anything from a single-quote onwards, then try:

$line =~ s/\'.*//;

Clyde

Rashid Saharudin <rashid1218@hotmail.com> wrote in message
news:8m65en$fo8$1@nnrp1.deja.com...
>
>
> Dear Sir/ Madam,
>
> I would like to remove blank lines and command lines in my text file
> and then would like to save
> that file as a new file. I managed to remove the blank lines but I
> could not delete/ remove a
> sentence such as 'commands for ........

<snip>





------------------------------

Date: Tue, 01 Aug 2000 11:45:55 GMT
From: tomppa_emoe@my-deja.com
Subject: Re: RSH to os/2 does not work with backticks
Message-Id: <8m6d9i$kp2$1@nnrp1.deja.com>

This does not change anything, unfortunately...

Thomas


Sent via Deja.com http://www.deja.com/
Before you buy.


------------------------------

Date: 01 Aug 2000 12:21:03 +0100
From: nobull@mail.com
Subject: Re: SMTP servers
Message-Id: <u9aeex1b33.fsf@wcl-l.bham.ac.uk>

David Tsai <templar318@earthlink.net> writes:

> This question is a little bit off topic...

Yet asked quite often nonetheless.  Consider using Usenet search
engines before you post.
 
> What is the point of having an outgoing SMTP server?  Why doesn't your
> email client just act as a SMTP relay itself and directly send the mail
> to where its suppose to go?  Wouldn't it be the same thing?

Yes is would be the same thing.  Have you seen the size and complexity
of sendmail (or even qmail or exim) lately?  If you want your client
to be the same thing as a full blown MTA then it will have to
implement all the queuing, retrying, MX failover, failure reporting
etc.

This is a massive wasted duplication of effort.

There's also various administrative reasons to limit/detect/prevent
abuse.  If your client doesn't have a static IP address then it is not
BCP to send mail directly from it and many sites will refuse to accept
mail from known dynamic IP pools (MAPS/DUL).

-- 
     \\   ( )
  .  _\\__[oo
 .__/  \\ /\@
 .  l___\\
  # ll  l\\
 ###LL  LL\\


------------------------------

Date: Tue, 01 Aug 2000 11:14:16 GMT
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: SMTP servers
Message-Id: <ciyh5.822$82.36321@news.dircon.co.uk>

On Tue, 01 Aug 2000 09:48:04 GMT, David Tsai Wrote:
> 
> This question is a little bit off topic...
> 
> What is the point of having an outgoing SMTP server?
> 

This is not 'a little bit off topic', this is so completely and utterly
off topic that you might as well be asking it in alt.spoonbending for all
the relevance it has to Perl.

Ask in a group with 'mail' in the name.

HTH

/J\


------------------------------

Date: Tue, 01 Aug 2000 12:42:30 GMT
From: Jim Mauldin <mauldin@netstorm.net>
Subject: Re: spliting on caps (newbie)
Message-Id: <3986C53A.22D35717@netstorm.net>

Bernard El-Hagin wrote:
> 
> On 1 Aug 2000 05:12:32 -0400, Jason Goodrow <goodrow@panix.com> wrote:
> >Hey - I'm trying to split words on caps
> >
> >@a = split '([A-Z])', $ARGV[0];
> >
>
> >Any advice?
> 
> Here's one way of doing this:
> 
> __________________
> $_ = "SplitThisMessUp";
> s/([A-Z])/\n$1/g;
> print;
> __________________
> 
> Of course there are many others.
> 

e.g.
$_ = "SplitThisMessUp";
@a = /[A-Z][^A-Z]+/g;

-- Jim


------------------------------

Date: 1 Aug 2000 11:43:43 GMT
From: <acfernandes@netc.pt>
Subject: Substituting a string?!
Message-Id: <3986a9df$1@212.18.160.197>


Hello everybody!
I am getting started with programming in perl.
I am trying to do a task that I think is very
simple but i am having some problems. I need
to find a substring inside a string in a file
and remove it, eg:

old:
p=12,as=43,w=8;
p=2,as=1344,y=9;

new:
p=12,w=8;
p=2,y=9;

I need to remove the mentioning of as=... in
all lines and save to a new file. But i am
getting problems with the variable length of
as.
Can someone help me please?


------------------------------

Date: Tue, 01 Aug 2000 11:14:45 GMT
From: bernard.el-hagin@lido-tech.net (Bernard El-Hagin)
Subject: Re: Substituting a string?!
Message-Id: <slrn8odc06.61h.bernard.el-hagin@gdndev25.lido-tech>

On 1 Aug 2000 11:43:43 GMT, acfernandes@netc.pt <acfernandes@netc.pt> wrote:
>
>Hello everybody!
>I am getting started with programming in perl.
>I am trying to do a task that I think is very
>simple but i am having some problems. I need
>to find a substring inside a string in a file
>and remove it, eg:
>
>old:
>p=12,as=43,w=8;
>p=2,as=1344,y=9;
>
>new:
>p=12,w=8;
>p=2,y=9;
>
>I need to remove the mentioning of as=... in
>all lines and save to a new file. But i am
>getting problems with the variable length of
>as.
>Can someone help me please?

What are the rules for removing substrings? Is the input always comma
separated? Can there be commas in a removed item itself? Have you read
"perldoc perlre"? Have you read "perldoc -f split"? Why is the sky blue?
Why doesn't Barney Rubble have a neck? These questions trouble me.

Bernard
--
perl -le 'open(JustAnotherPerlHacker,"")or$_="B$!e$!r$!n$!a$!r$!d$!";
print split/No such file or directory/;'


------------------------------

Date: Tue, 1 Aug 2000 12:39:39 +0200
From: "Alan J. Flavell" <flavell@mail.cern.ch>
Subject: Re: text file to HTML page
Message-Id: <Pine.GHP.4.21.0008011234200.29313-100000@hpplus03.cern.ch>

On Tue, 1 Aug 2000, Bart Lateur wrote:

> "<" and "&" are important, ">" and '"' not really.

Agreed.

> ">"
> is meaningless as a tag closing marker (">") if there isn't any tag
> opening marker ("<"). 

Right.

And since you're not _generating_ any HTML tags that use material from
the input data, you can get away with not "entifying" quotes either,
although it'll do no real harm if you go and entify '>' and '"'
anyway.

cheers



------------------------------

Date: 16 Sep 99 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin) 
Subject: Digest Administrivia (Last modified: 16 Sep 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.  

| NOTE: The mail to news gateway, and thus the ability to submit articles
| through this service to the newsgroup, has been removed. I do not have
| time to individually vet each article to make sure that someone isn't
| abusing the service, and I no longer have any desire to waste my time
| dealing with the campus admins when some fool complains to them about an
| article that has come through the gateway instead of complaining
| to the source.

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.

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 3869
**************************************


home help back first fref pref prev next nref lref last post