[30465] in Perl-Users-Digest

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

Perl-Users Digest, Issue: 1708 Volume: 11

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Thu Jul 10 16:10:06 2008

Date: Thu, 10 Jul 2008 13:09:22 -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           Thu, 10 Jul 2008     Volume: 11 Number: 1708

Today's topics:
    Re: Elisp Lesson on file processing (make downloadable  <smalladi@gmail.com>
    Re: FAQ 1.12 What's the difference between "perl" and " pilcrow@pp.info
    Re: FAQ 1.12 What's the difference between "perl" and " <gseemysig@gmail.com>
    Re: FAQ 1.12 What's the difference between "perl" and " <gseemysig@gmail.com>
    Re: FAQ 1.12 What's the difference between "perl" and " <gseemysig@gmail.com>
    Re: FAQ 1.12 What's the difference between "perl" and " <gseemysig@gmail.com>
    Re: FAQ 1.12 What's the difference between "perl" and " sln@netherlands.com
    Re: FAQ 1.12 What's the difference between "perl" and " sln@netherlands.com
    Re: FAQ 1.12 What's the difference between "perl" and " sln@netherlands.com
    Re: FAQ 1.12 What's the difference between "perl" and " <glennj@ncf.ca>
    Re: help with regular expression <gseesig@gmail.com>
        How to get Perl CGI working on Mac OS 10.5? <vol30w60@yahoo.com>
    Re: How to get Perl CGI working on Mac OS 10.5? <vol30w60@yahoo.com>
    Re: How to get Perl CGI working on Mac OS 10.5? <kkeller-usenet@wombat.san-francisco.ca.us>
    Re: Non-printable char in regex <soup_or_power@yahoo.com>
    Re: Non-printable char in regex <soup_or_power@yahoo.com>
    Re: Non-printable char in regex <m@rtij.nl.invlalid>
        printing envelops from perl <jcharth@gmail.com>
    Re: printing envelops from perl <fawaka@gmail.com>
        Use of uninitialized value in array dereference <razvan.mihai@gmail.com>
    Re: Use of uninitialized value in array dereference <fawaka@gmail.com>
        Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)

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

Date: Thu, 10 Jul 2008 11:35:59 -0700 (PDT)
From: Sashi <smalladi@gmail.com>
Subject: Re: Elisp Lesson on file processing (make downloadable copy of a  website)
Message-Id: <7095dc5e-3008-45b8-8665-e746bff84dd6@m36g2000hse.googlegroups.com>

On Jul 6, 4:05 am, "xah...@gmail.com" <xah...@gmail.com> wrote:
> In this week i wrote a emacs program and tutorial that does archiving
> a website for offline reading.
> (Seehttp://xahlee.org/emacs/make_download_copy.html)

Why not use wget or curl?


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

Date: Thu, 10 Jul 2008 01:53:22 -0700
From: pilcrow@pp.info
Subject: Re: FAQ 1.12 What's the difference between "perl" and "Perl"?
Message-Id: <7djb74hj17n6aomvrhpmd301ql0qeiv8rv@4ax.com>

On Thu, 10 Jul 2008 08:17:29 +0200 (CEST), Jim Cochrane
<allergic-to-spam@no-spam-allowed.org> wrote:

>On 2008-07-10, J?Exner <jurgenex@hotmail.com> wrote:
>> Glenn Jackman <glennj@ncf.ca> wrote:
>>>At 2008-07-09 01:02PM, "Gordon Corbin Etly" wrote:
>>>>  So far I've been using simple logic:
>>>>  
>>>>  Larry Wall said him self that "Perl stands for Practical Extraction and 
>>>>  Report Language", and as with many other terms, like, for example, "If I 
>>>>  Recall Correctly", can be shortened and optionally written in upper case 
>>>>  as "PERL" (just like you can write IIRC, for example.)
>>>
>>>If I declare your last name stands for "Extremely Tiresome, Lots of
>>>Yammering", will you have to spell it in all upper case henceforth?
>>
>> That is hilarious! You made my day, thanks for this comment!
>>
>> jue
>
>This thread is Extremely Tiresome.  I thought it had died a month or two
>ago.

let us now argue about the number of angels that can dance on the point
of a pin


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

Date: Thu, 10 Jul 2008 11:36:46 -0700
From: "Gordon Corbin Etly" <gseemysig@gmail.com>
Subject: Re: FAQ 1.12 What's the difference between "perl" and "Perl"?
Message-Id: <6dn35vF3dlsjU1@mid.individual.net>

Charlton Wilbur wrote:
> Gordon Corbin Etly wrote:

> > Ok, if you believe in Judaism, and 20 people who you work with
> > believe in Buddhism, and if those 20 people start imposing
> > certain beliefs on you, and the other hundreds of people in
> > your place, would you not consider this wrong? Should you not
> > be able to walk through that particular cubicle cluster without
> > having to conform to their view that they are pressuring you to
> > do, despite what you anyone else may believe in?
> >
> > How is this any different than a particular group of people
> > telling others that they should not wrote "PERL" when there is
> > no real reason of any substance that makes it wrong.

> The spelling of Perl is relevant to the work.

I would say the actual programs created, and the skills of those writing 
them, are far more relevant than what a particular subset of a community 
regards as correct spelling.

> In particular, someone who is asininely stubborn about spelling Perl
> as PERL is also likely to have other idiosyncracies that make him
> difficult to get along with;

Could the same not be said about the "other side", that is also being 
quote stubborn? Why be one-sided about it? And even making the 
connection is a fallacy. Just because someone spells it as "PERL" and 
does so based on the words of Larry Wall, does not make him or her any 
less of potentially competent programmer (or hacker.)


> > Why would you ding someone for writing in short hand what Larry
> > Wall himself says Perl stands for?
>
> Because the Perl FAQ says not to do it.

The FAQ is not gospel and it certainally is not infallible, and it most 
certinally is not a greater authority than Larry WAll himself.


> Someone who writes PERL instead of Perl has either not read the FAQ or 
> believes he knows better than the FAQ,

This is naother fallicious presumption. It could merely mean they have 
chosen to regard the words of Larry Wall higher than a user-writen FAQ.


> and both of those are very bad signs in a candidate.

Do you really believe that?


> > I really have to disagree. It's been proven that Larry Wall
> > himself gave expansions of what Perl stands for,

> As a joke.

Not in the article I posted, it wasn't. It's also in the perldoc in the 
description for 'perl'.


> > and another way to write that is "PERL", yet they refuse to
> > amend the FAQ, and they continue to push *their* *view*, that
> > it is wrong, when the facts point the other way.  Whether it's
> > one person's view, or that of a group of people, it doesn't
> > make it right.

> When it's the view of a significant majority, that's enough to get it
> into dictionaries.

1) Can you please prove that you speak for the *majority* of Perl uers 
or the Perl community?

2) It's already in many reference materials. It's also in perldoc.


Ted Zlatanov wrote:
> On Wed, 9 Jul 2008 13:30:49 -0700 "Gordon Corbin Etly" wrote:

> > How is this any different than a particular group of people telling
> > others that they should not wrote "PERL" when there is no real
> > reason of any substance that makes it wrong. Sure they use it as a
> > litmus test to see if one follows their "religion", but it's asking
> > someone to write "God" by the name you religion calls it, instead
> > of respecting that they may want to write it their own way.

> Regardless of your opinion, *the community* writes it "Perl"
> consistently, and the 3-4 exceptions you've found are irrelevant
> compared to the vast number of times it's been written correctly.

Again, what makes you think that this view, that "PERL" is wrong, really 
reflects the views of the *majority* of the Perl community? What it 
looks like to me, is that it's a certain subset of the community that 
regards themselves as higher than everyone else, that pushes this view. 
I've never seen anyone other than a select few, and really only in this 
news group, pushing this view.

It's in perldoc, it's in an Linux Magazine article where Larry states in 
his own words, and not in a joking manner, that Perl stands mainly for 
"Practical Extraction and Report Language", and none of you can 
definitively tell me (or anyone else reading) why it cannot be 
acceptable to write that as "PERL" for short. Instead, it's the same old 
excuses.


--
Gordon C. Etly
Email: perl -e "print q{}.reverse(q{moc.liamg@ylte.nodrog})" 




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

Date: Thu, 10 Jul 2008 11:45:55 -0700
From: "Gordon Corbin Etly" <gseemysig@gmail.com>
Subject: Re: FAQ 1.12 What's the difference between "perl" and "Perl"?
Message-Id: <6dn3n4F3c6voU1@mid.individual.net>

Tad J McClellan wrote:
> Gordon Corbin Etly <gseesig@gmail.com> wrote:

> > To me it's wrong to force your beliefs on other people.

> All of your posts in this thread are attempting to force your
> beliefs on other people.

The point is about the fact that you people are doing precisely that.


> Does your belief include an exception for only yourself?

Where did this come from? I'm arguing that this taboo-izing of writing 
"PERL" really has no merit. I have not been pushing a belief, nor have I 
made any such exceptions for my self (which you suspiciously don't 
elaborate on.

It has become quote clear that none of you have a rational argument as 
to why you cannot write the words of Larry Wall himself, "Perl not only 
stands for the Practical Extraction and Report Language", as "PERL" for 
short; as to why it has no merit, other than a shared personal distaste 
among a subset of this group's denizens that consider themselves to be 
superior to everyone else and act as if they have a right to dictate how 
we are to think.


--
Gordon C. Etly
Email: perl -e "print q{}.reverse(q{moc.liamg@ylte.nodrog})" 




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

Date: Thu, 10 Jul 2008 11:52:43 -0700
From: "Gordon Corbin Etly" <gseemysig@gmail.com>
Subject: Re: FAQ 1.12 What's the difference between "perl" and "Perl"?
Message-Id: <6dn43sF3ep0kU1@mid.individual.net>

Tad J McClellan wrote:
> Gordon Corbin Etly <gseesig@gmail.com> wrote:
> > Tad J McClellan wrote:

 ...

> When they see PERL in a clueless post and Perl in clueful posts,
> they will know that the decree is inaccurate.

Please prove this is always the case, and that it changes the words of 
Larry Wall. And that it means you cannot write "PERL" as a short way of 
writing "Practical Extraction and Report Language", which is what he 
said Perl stands for.


> > Larry Wall said him self that "Perl stands for Practical Extraction
> > and Report Language", and as with many other terms, like, for
> > example, "If I Recall Correctly",

> I doubt that is was originally written in title case...

Then please read the article for yourself:

< http://tinyurl.com/6joyuz >
" Perl not only stands for the Practical Extraction and Report
" Language, but it also stands for the Pathologically Eclectic
" Rubbish Lister.

These are Larry Walls own words.


--
Gordon C. Etly
Email: perl -e "print q{}.reverse(q{moc.liamg@ylte.nodrog})" 




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

Date: Thu, 10 Jul 2008 11:55:39 -0700
From: "Gordon Corbin Etly" <gseemysig@gmail.com>
Subject: Re: FAQ 1.12 What's the difference between "perl" and "Perl"?
Message-Id: <6dn49cF3f7qbU1@mid.individual.net>

Glenn Jackman wrote:
> At 2008-07-09 01:02PM, "Gordon Corbin Etly" wrote:
> >  So far I've been using simple logic:

> >  Larry Wall said him self that "Perl stands for Practical Extraction
> >  and Report Language", and as with many other terms, like, for
> >  example, "If I Recall Correctly", can be shortened and optionally
> >  written in upper case as "PERL" (just like you can write IIRC, for
> > example.)

> If I declare your last name stands for "Extremely Tiresome, Lots of
> Yammering", will you have to spell it in all upper case henceforth?

Not necessarily, but it's not unreasonable, nor uncommon, to do so. It's 
really more personal preference. So no only are they pushing a shared 
belief, in some ways it might even be seen as an encroachment on 
personal liberties, but I wouldn't go that far.


--
Gordon C. Etly
Email: perl -e "print q{}.reverse(q{moc.liamg@ylte.nodrog})" 




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

Date: Thu, 10 Jul 2008 19:22:16 GMT
From: sln@netherlands.com
Subject: Re: FAQ 1.12 What's the difference between "perl" and "Perl"?
Message-Id: <70oc74djb2oum1igfe36hg1nfh7gooh3jp@4ax.com>

On Thu, 10 Jul 2008 11:55:39 -0700, "Gordon Corbin Etly" <gseemysig@gmail.com> wrote:

>Glenn Jackman wrote:
>> At 2008-07-09 01:02PM, "Gordon Corbin Etly" wrote:
>> >  So far I've been using simple logic:
>
>> >  Larry Wall said him self that "Perl stands for Practical Extraction
>> >  and Report Language", and as with many other terms, like, for
>> >  example, "If I Recall Correctly", can be shortened and optionally
>> >  written in upper case as "PERL" (just like you can write IIRC, for
>> > example.)
>
>> If I declare your last name stands for "Extremely Tiresome, Lots of
>> Yammering", will you have to spell it in all upper case henceforth?
>
Don't take this crap, Jackman's name wasn't passed down as an acronym.
Isin't that right JACKMAN (the name says it all)?

>Not necessarily, but it's not unreasonable, nor uncommon, to do so. It's 
>really more personal preference. So no only are they pushing a shared 
>belief, in some ways it might even be seen as an encroachment on 
>personal liberties, but I wouldn't go that far.

Don't defend against whack men, you don't have too ..
Obviously a slight to you, take it as such!

sln


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

Date: Thu, 10 Jul 2008 19:24:29 GMT
From: sln@netherlands.com
Subject: Re: FAQ 1.12 What's the difference between "perl" and "Perl"?
Message-Id: <pcoc74tjm3jhphfkn2ejm2aksqccelhsd1@4ax.com>

On Thu, 10 Jul 2008 11:45:55 -0700, "Gordon Corbin Etly" <gseemysig@gmail.com> wrote:

>Tad J McClellan wrote:
>> Gordon Corbin Etly <gseesig@gmail.com> wrote:
>
>> > To me it's wrong to force your beliefs on other people.
>
>> All of your posts in this thread are attempting to force your
>> beliefs on other people.
>
>The point is about the fact that you people are doing precisely that.
>
>
>> Does your belief include an exception for only yourself?

What a moron! Does he even know what he said, NO !!!
>
>Where did this come from? I'm arguing that this taboo-izing of writing 
>"PERL" really has no merit. I have not been pushing a belief, nor have I 
>made any such exceptions for my self (which you suspiciously don't 
>elaborate on.
>
>It has become quote clear that none of you have a rational argument as 
>to why you cannot write the words of Larry Wall himself, "Perl not only 
>stands for the Practical Extraction and Report Language", as "PERL" for 
>short; as to why it has no merit, other than a shared personal distaste 
>among a subset of this group's denizens that consider themselves to be 
>superior to everyone else and act as if they have a right to dictate how 
>we are to think.

Ignore this troll...

sln


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

Date: Thu, 10 Jul 2008 19:27:33 GMT
From: sln@netherlands.com
Subject: Re: FAQ 1.12 What's the difference between "perl" and "Perl"?
Message-Id: <bhoc741qn5e115ek5v0akrjaos9e63c2uj@4ax.com>

On Thu, 10 Jul 2008 11:52:43 -0700, "Gordon Corbin Etly" <gseemysig@gmail.com> wrote:

>Tad J McClellan wrote:
>> Gordon Corbin Etly <gseesig@gmail.com> wrote:
>> > Tad J McClellan wrote:
>
>...
>
>> When they see PERL in a clueless post and Perl in clueful posts,
>> they will know that the decree is inaccurate.
Someone give me a dictionary, I need to look up "clueful".. jeez
>
>Please prove this is always the case, and that it changes the words of 
>Larry Wall. And that it means you cannot write "PERL" as a short way of 
>writing "Practical Extraction and Report Language", which is what he 
>said Perl stands for.
>
>
>> > Larry Wall said him self that "Perl stands for Practical Extraction
>> > and Report Language", and as with many other terms, like, for
>> > example, "If I Recall Correctly",
>
>> I doubt that is was originally written in title case...
DOUBT? What does that stand for?
>
>Then please read the article for yourself:
>
>< http://tinyurl.com/6joyuz >
>" Perl not only stands for the Practical Extraction and Report
>" Language, but it also stands for the Pathologically Eclectic
>" Rubbish Lister.
>
>These are Larry Walls own words.

Please, ignore this troll !

sln


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

Date: 10 Jul 2008 19:51:30 GMT
From: Glenn Jackman <glennj@ncf.ca>
Subject: Re: FAQ 1.12 What's the difference between "perl" and "Perl"?
Message-Id: <slrng7cq24.6vn.glennj@smeagol.ncf.ca>

At 2008-07-10 02:52PM, "Gordon Corbin Etly" wrote:
>  Then please read the article for yourself:
>  
> < http://tinyurl.com/6joyuz >
>  " Perl not only stands for the Practical Extraction and Report
>  " Language, but it also stands for the Pathologically Eclectic
>  " Rubbish Lister.
>  
>  These are Larry Walls own words.

Here are some more:

http://www.linuxjournal.com/article/3394

    Eventually I came up with the name "pearl", with the gloss Practical
    Extraction and Report Language. The "a" was still in the name when I
    made that one up. But I heard rumors of some obscure graphics
    language named "pearl", so I shortened it to "perl". (The "a" had
    already disappeared by the time I gave Perl its alternate gloss,
    Pathologically Eclectic Rubbish Lister.)
    ...
    we realized about the time of Perl 4 that it was useful to
    distinguish between "perl" the program and "Perl" the language.

I'm guessing Mr Wall would be rather precise in his writings, so "gloss"
not "acronym" 

    http://en.wikipedia.org/wiki/Gloss
    http://en.wikipedia.org/wiki/Acronym#Backronyms
    http://en.wikipedia.org/wiki/Perl#Name

-- 
Glenn Jackman
    Write a wise saying and your name will live forever. -- Anonymous


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

Date: Thu, 10 Jul 2008 11:17:03 -0700
From: "Gordon Corbin Etly" <gseesig@gmail.com>
Subject: Re: help with regular expression
Message-Id: <6dn211F3dd4kU1@mid.individual.net>

John W. Krahn wrote:
> Gordon Corbin Etly wrote:

> And to help you with your english, as well as your perl:

Not really, I just wrote it in haste. I think the meaning can still be 
deciphered easily enough, though I generally write more proficiently. We 
all have our occasional lapses, especially as the mercury rises.

> > But you are write,
 ...

> That should be:
>
> But you are right,
 ...

Yes, that is correct. My apologies.


> > Yes this is exactly what I mean to write
 ...

> And again:
>
> Yes this is exactly what I meant to write
 ...

While I realize this wasn't the best display of typing skill, I hardly 
think it was necessary to correct two small mistakes; many people make 
the same sort of typos. Thank anyways, though.


--
Gordon C. Etly
Email: perl -e "print q{}.reverse(q{moc.liamg@ylte.nodrog})" 




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

Date: Thu, 10 Jul 2008 17:27:53 GMT
From: vol30w60 <vol30w60@yahoo.com>
Subject: How to get Perl CGI working on Mac OS 10.5?
Message-Id: <tErdk.215254$SV4.88483@bgtnsc04-news.ops.worldnet.att.net>

I've tried searching this topic and only found a few tutorials on this, 
but I still cannot get CGI working.

The machine is Mac OS 10.5.3

I do have Perl installed by default:
perl -v
This is perl, v5.8.8 built for darwin-2level


I've set-up my Apache config files with the following options:

<Directory "/Users/mike/Sites/">
	Options MultiViews Indexes SymLinksIfOwnerMatch Includes ExecCGI
	DirectoryIndex index.html index.shtml index.php
	AllowOverride FileInfo AuthConfig Limit
	AddHandler cgi-script .cgi
	<Limit GET POST OPTIONS PROPFIND>
		Order allow,deny
		Allow from all
	</Limit>
	<LimitExcept GET POST OPTIONS PROPFIND>
		Order deny,allow
		Deny from all
	</LimitExcept>
</Directory>


When I try to access a cgi script, it outputs the code (does not process 
the script):

http://127.0.0.1/~mike/cgi-bin/test.cgi

Output:
#!/usr/bin/perl -wT
print "Content-type: text/html\n\n";
print "<h2>Hello, World!</h2>\n";


file is set to:
-rwxr-xr-x


What am I missing?


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

Date: Thu, 10 Jul 2008 19:18:35 GMT
From: vol30w60 <vol30w60@yahoo.com>
Subject: Re: How to get Perl CGI working on Mac OS 10.5?
Message-Id: <fgtdk.215618$SV4.166501@bgtnsc04-news.ops.worldnet.att.net>

vol30w60 wrote:
> I've tried searching this topic and only found a few tutorials on this, 
> but I still cannot get CGI working.
> 
> The machine is Mac OS 10.5.3
> 

This problem has been solved.

FYI, there are two configuration directories:
/etc/httpd
/etc/apache2

Changes need to be made in /etc/apache2
The files in /etc/httpd are ignored (and probably should just be deleted)


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

Date: Thu, 10 Jul 2008 12:20:36 -0700
From: Keith Keller <kkeller-usenet@wombat.san-francisco.ca.us>
Subject: Re: How to get Perl CGI working on Mac OS 10.5?
Message-Id: <514ik5xg1f.ln2@goaway.wombat.san-francisco.ca.us>

On 2008-07-10, vol30w60 <vol30w60@yahoo.com> wrote:
> I've tried searching this topic and only found a few tutorials on this, 
> but I still cannot get CGI working.

Then you probably have an Apache problem, not a Perl problem.

> When I try to access a cgi script, it outputs the code (does not process 
> the script):

Then you definitely have an Apache problem, not a Perl problem.

Since you have an Apache problem, I suggest you try asking your question
in an Apache newsgroup.  (I believe alt.apache.configuration might be a
good bet.)

--keith


-- 
kkeller-usenet@wombat.san-francisco.ca.us
(try just my userid to email me)
AOLSFAQ=http://www.therockgarden.ca/aolsfaq.txt
see X- headers for PGP signature information



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

Date: Thu, 10 Jul 2008 06:18:00 -0700 (PDT)
From: "souporpower@gmail.com" <soup_or_power@yahoo.com>
Subject: Re: Non-printable char in regex
Message-Id: <6fe93417-ac19-4604-834a-ab26d5c40df2@i76g2000hsf.googlegroups.com>

On Jul 9, 3:37=A0pm, Martijn Lievaart <m...@rtij.nl.invlalid> wrote:
> On Wed, 09 Jul 2008 11:29:25 -0700, souporpo...@gmail.com wrote:
> > Hi
>
> > I have a regex problem on Windows XP Active Perl V5.8.8. The string to
> > match starts with a 2 chars that are non-printable. I tried using Hex,
> > Octal and Control patterns without success. If I remove the first 2
> > chars in the string the subsequent pattern matching works fine. Has
> > anyone encountered this before? Does perl have a pattern matcher for
> > non-printable chars?
>
> Use a dot if you don't care for the value. But be aware that those two
> _bytes_ may form one unicode _character_.

I have tried dot which doesn't work

> If you do care about matching the exact value, look at perldoc perlre,
> especially \x and \x{}
>
> HTH,
> M4

Thanks


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

Date: Thu, 10 Jul 2008 06:19:45 -0700 (PDT)
From: "souporpower@gmail.com" <soup_or_power@yahoo.com>
Subject: Re: Non-printable char in regex
Message-Id: <0a3684ed-2575-4052-b7ac-5d5454f01848@x41g2000hsb.googlegroups.com>

On Jul 9, 3:46=A0pm, Leon Timmermans <faw...@gmail.com> wrote:
> On Wed, 09 Jul 2008 11:29:25 -0700, souporpo...@gmail.com wrote:
> > Hi
>
> > I have a regex problem on Windows XP Active Perl V5.8.8. The string to
> > match starts with a 2 chars that are non-printable. I tried using Hex,
> > Octal and Control patterns without success. If I remove the first 2
> > chars in the string the subsequent pattern matching works fine. Has
> > anyone encountered this before? Does perl have a pattern matcher for
> > non-printable chars?
>
> > Thanks for your help
>
> Hi,
>
> Could you post you code. I doubt we can really help you with it. Have you
> tried it like \x00 (numbers should be the hex value of your characters)?
> That should do the trick.
>
> Leon Timmermans

I don't know the hex values. I am using MS-DOS :( Besides, the hex
values are not constant.
When I use $mystring=3Dsubstr($mystring, 2) everything is dandy. BTW, I
scrape the web
with Mechanize and so it could be an image. But I am not sure.

Thanks


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

Date: Thu, 10 Jul 2008 16:13:39 +0200
From: Martijn Lievaart <m@rtij.nl.invlalid>
Subject: Re: Non-printable char in regex
Message-Id: <pan.2008.07.10.14.13.39@rtij.nl.invlalid>

On Thu, 10 Jul 2008 06:18:00 -0700, souporpower@gmail.com wrote:

> On Jul 9, 3:37 pm, Martijn Lievaart <m...@rtij.nl.invlalid> wrote:
>> On Wed, 09 Jul 2008 11:29:25 -0700, souporpo...@gmail.com wrote:
>> > Hi
>>
>> > I have a regex problem on Windows XP Active Perl V5.8.8. The string
>> > to match starts with a 2 chars that are non-printable. I tried using
>> > Hex, Octal and Control patterns without success. If I remove the
>> > first 2 chars in the string the subsequent pattern matching works
>> > fine. Has anyone encountered this before? Does perl have a pattern
>> > matcher for non-printable chars?
>>
>> Use a dot if you don't care for the value. But be aware that those two
>> _bytes_ may form one unicode _character_.
> 
> I have tried dot which doesn't work

Strange....

perl -e '$_="This \x{263a} is a smiley"; print "match\n" if /This . is/'

M4


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

Date: Thu, 10 Jul 2008 12:38:28 -0700 (PDT)
From: joe <jcharth@gmail.com>
Subject: printing envelops from perl
Message-Id: <f36f43d7-dc0c-4ad4-9e60-93f1d58a8ad1@m73g2000hsh.googlegroups.com>

Does anyone know if it is possible to print envelopes using cgi
scripts in a web browser? Can the web browser read page breaks?
Thanks.


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

Date: Thu, 10 Jul 2008 21:54:09 +0200
From: Leon Timmermans <fawaka@gmail.com>
Subject: Re: printing envelops from perl
Message-Id: <33dde$487668e1$89e0e08f$16878@news1.tudelft.nl>

On Thu, 10 Jul 2008 12:38:28 -0700, joe wrote:

> Does anyone know if it is possible to print envelopes using cgi scripts
> in a web browser? Can the web browser read page breaks? Thanks.

You can't control the printers of your users from a webpage, but you can 
present them a page to print out. How much control you have over how it 
looks depends on your output format. You probably want to output PDF; 
there are various modules for that on CPAN.

Leon Timmermans.


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

Date: 10 Jul 2008 13:20:12 GMT
From: Razvan <razvan.mihai@gmail.com>
Subject: Use of uninitialized value in array dereference
Message-Id: <6dmgkcF3a08mU1@mid.individual.net>

Hello NG,

why does the following line print the warning in the subject:

$ perl -wle '@{ $x->{0} };'

but this one doesn't:

$ perl -wle '@{ $x->{0} }=1;'

Thank you,

Razvan


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

Date: Thu, 10 Jul 2008 15:41:04 +0200
From: Leon Timmermans <fawaka@gmail.com>
Subject: Re: Use of uninitialized value in array dereference
Message-Id: <18e1a$48761170$89e0e08f$27108@news1.tudelft.nl>

On Thu, 10 Jul 2008 13:20:12 +0000, Razvan wrote:

> Hello NG,
> 
> why does the following line print the warning in the subject:
> 
> $ perl -wle '@{ $x->{0} };'
> 
> but this one doesn't:
> 
> $ perl -wle '@{ $x->{0} }=1;'
> 
> Thank you,
> 
> Razvan

Hi,

It is called autovivication. In the first case you read a value which 
doesn't exist, which is unlikely what you want. What is it supposed to 
represent? In the second case you define a value that didn't exist before 
you did so, a well defined situation.

Leon Timmermans


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

Date: 6 Apr 2001 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin) 
Subject: Digest Administrivia (Last modified: 6 Apr 01)
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: due to the current flood of worm email banging on ruby, the smtp
server on ruby has been shut off until further notice. 

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 V11 Issue 1708
***************************************


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