[22197] in Perl-Users-Digest
Perl-Users Digest, Issue: 4418 Volume: 10
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Fri Jan 17 06:05:40 2003
Date: Fri, 17 Jan 2003 03:05:07 -0800 (PST)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Perl-Users Digest Fri, 17 Jan 2003 Volume: 10 Number: 4418
Today's topics:
Re: $x =~ s!(\d+)%!$1/100!e; <istink@real.bad.com>
Re: $x =~ s!(\d+)%!$1/100!e; <jurgenex@hotmail.com>
Re: $x =~ s!(\d+)%!$1/100!e; <bongie@gmx.net>
Append a text at the top an existing file (Romuald Favre)
Re: Append a text at the top an existing file <bernard.el-hagin@DODGE_THISlido-tech.net>
auto vs. ARCH vs. 5.005 vs. 5.00503 vs. site_perl etc. <thomas@mellman.net>
Re: auto vs. ARCH vs. 5.005 vs. 5.00503 vs. site_perl e <tassilo.parseval@post.rwth-aachen.de>
Re: auto vs. ARCH vs. 5.005 vs. 5.00503 vs. site_perl e <thomas@mellman.net>
Code-page Browser Output (Dale)
Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Fri, 17 Jan 2003 00:19:16 -0500
From: istink <istink@real.bad.com>
Subject: Re: $x =~ s!(\d+)%!$1/100!e;
Message-Id: <3E279254.736E6159@real.bad.com>
ah-damn!
this is what happens when I write in the middle of the night like I did
last night and what I'm doing now.
I ment something that would take typed text and convert it into ASCII
numbers. then take ASCII numbers and convert them back to characters.
istink wrote:
>
> $x =~ s!(\d+)%!$1/100!e;
>
> I'm trying to convert a string of characters into ASCII.
> and then, change ASCII into convert.
>
> -----------== Posted via Newsfeed.Com - Uncensored Usenet News ==----------
> http://www.newsfeed.com The #1 Newsgroup Service in the World!
> -----= Over 100,000 Newsgroups - Unlimited Fast Downloads - 19 Servers =-----
------------------------------
Date: Fri, 17 Jan 2003 05:25:10 GMT
From: "Jürgen Exner" <jurgenex@hotmail.com>
Subject: Re: $x =~ s!(\d+)%!$1/100!e;
Message-Id: <WsMV9.4799$zH5.497@nwrddc03.gnilink.net>
[Please to not top post]
[Please do not blindly full-quote]
[Please do not quote signatures]
istink wrote:
> I ment something that would take typed text and convert it into ASCII
> numbers. then take ASCII numbers and convert them back to characters.
So you want the numerical code point of an ASCII character and vice versa.
Please see 'perldoc -f ord' and 'perldoc -f chr'.
jue
------------------------------
Date: Fri, 17 Jan 2003 06:26:17 +0100
From: "Harald H.-J. Bongartz" <bongie@gmx.net>
Subject: Re: $x =~ s!(\d+)%!$1/100!e;
Message-Id: <1257501.ONX0Vyn9dV@nyoga.dubu.de>
istink wrote:
> this is what happens when I write in the middle of the night like I
> did last night and what I'm doing now.
Let's hope the best. ;-)
> I ment something that would take typed text and convert it into ASCII
> numbers.
perldoc -f ord
> then take ASCII numbers and convert them back to characters.
perldoc -f chr
> istink wrote:
>>
>> $x =~ s!(\d+)%!$1/100!e;
But I still keep asking myself what this "percent conversion" has to do
with it. ;-)
Ciao,
Harald
--
Harald H.-J. Bongartz <bongie@gmx.net>
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
People come up to me and say, "Emo, do people really come up to you?"
-- Emo Phillips
------------------------------
Date: 17 Jan 2003 02:35:16 -0800
From: romuald_favre@hotmail.com (Romuald Favre)
Subject: Append a text at the top an existing file
Message-Id: <34623cba.0301170235.6cea6b4a@posting.google.com>
Instead of appending a text at the bottom of file (with the statement
open (FILE,'>> file.txt')) , I have to append this text at the top of
a file.
Is it another character than ">>" I could us in order to have the
appending happening at the top of the file ?
Thanks in advance for your help !
R.Favre
------------------------------
Date: Fri, 17 Jan 2003 10:43:05 +0000 (UTC)
From: Bernard El-Hagin <bernard.el-hagin@DODGE_THISlido-tech.net>
Subject: Re: Append a text at the top an existing file
Message-Id: <b08mnp$5vn$1@korweta.task.gda.pl>
In article <34623cba.0301170235.6cea6b4a@posting.google.com>, Romuald
Favre wrote:
> Instead of appending a text at the bottom of file (with the statement
> open (FILE,'>> file.txt')) , I have to append this text at the top of
> a file.
>
> Is it another character than ">>" I could us in order to have the
> appending happening at the top of the file ?
open() doesn't fascilitate prepending, but you can reverse the file
and then append to it. Have a look at Uri Guttman's great module for a
good start:
http://search.cpan.org/author/URI/File-ReadBackwards-0.99/
Cheers,
Bernard
--
echo 42|perl -pe '$#="Just another Perl hacker,"'
------------------------------
Date: Fri, 17 Jan 2003 09:04:01 +0100
From: Thomas Mellman <thomas@mellman.net>
Subject: auto vs. ARCH vs. 5.005 vs. 5.00503 vs. site_perl etc. etc. etc
Message-Id: <3E27B8F1.60002@mellman.net>
--------------020706000908050109000709
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Is there an explaination of site_perl, 5.005 vs. 5.00503 (and
presumably equivalent versions under 5.6.1), auto, cygwin-multi
and i586-linux in a simple, concise, and complete format?
I have linux at home (perl5 (5.0 patchlevel 5 subversion 3)) and cygwin
at work (I think it's perl5 5.6.1) and I have the same problem in both.
I use the following script to make perl modules:
#!/bin/bash
export PATH=/bin:$PATH
perl Makefile.PL PREFIX=/opt INSTALLMAN1DIR=/opt/man/man1
INSTALLMAN3DIR=/opt/man/man3
make test
make install
Unfortunately, some things go into 5.00503, some into 5.005, some
into site_perl and some not.
I'm trying to build WWW::Search-Yahoo and nothing gets found, even
though it's all there.
I've looked at Config.pm and ExtUtils::MakeMakefile pods but I'd have to
spend many hours graphing out the set of possible targets and
possibilities to understand what's going on.
--
------------------------------------------------------------------------
Thomas Mellman
thomas@mellman.net
Tel. +49/8233/781-438 (
<https://digitaledienste.web.de/ComWin/?telno=00498233781438&mc=020022>Germany)
Mobile +49/162/806-8405
<https://digitaledienste.web.de/ComWin/?telno=00491628068405&mc=020022>
Fax +49/1212/5 115 48 103
--------------020706000908050109000709
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title></title>
</head>
<body>
Is there an explaination of site_perl, 5.005 vs. 5.00503 (and<br>
presumably equivalent versions under 5.6.1), auto, cygwin-multi<br>
and i586-linux in a simple, concise, and complete format?<br>
<br>
I have linux at home (perl5 (5.0 patchlevel 5 subversion 3)) and cygwin<br>
at work (I think it's perl5 5.6.1) and I have the same problem in both.<br>
<br>
I use the following script to make perl modules:<br>
<br>
#!/bin/bash<br>
<br>
export PATH=/bin:$PATH<br>
<br>
perl Makefile.PL PREFIX=/opt INSTALLMAN1DIR=/opt/man/man1 INSTALLMAN3DIR=/opt/man/man3<br>
make test<br>
make install<br>
<br>
Unfortunately, some things go into 5.00503, some into 5.005, some<br>
into site_perl and some not.<br>
<br>
I'm trying to build WWW::Search-Yahoo and nothing gets found, even<br>
though it's all there.<br>
<br>
I've looked at Config.pm and ExtUtils::MakeMakefile pods but I'd have to<br>
spend many hours graphing out the set of possible targets and<br>
possibilities to understand what's going on.<br>
<br>
-- <br>
------------------------------------------------------------------------<br>
Thomas Mellman<br>
<a class="moz-txt-link-abbreviated" href="mailto:thomas@mellman.net">thomas@mellman.net</a><br>
<br>
Tel. <a
href="https://digitaledienste.web.de/ComWin/?telno=00498233781438&mc=020022"
target="_blank">+49/8233/781-438 (</a>Germany)<br>
Mobile <a
href="https://digitaledienste.web.de/ComWin/?telno=00491628068405&mc=020022"
target="_blank">+49/162/806-8405</a><br>
Fax +49/1212/5 115 48 103
</body>
</html>
--------------020706000908050109000709--
------------------------------
Date: 17 Jan 2003 09:52:23 GMT
From: "Tassilo v. Parseval" <tassilo.parseval@post.rwth-aachen.de>
Subject: Re: auto vs. ARCH vs. 5.005 vs. 5.00503 vs. site_perl etc. etc. etc
Message-Id: <b08jon$qo2$1@nets3.rz.RWTH-Aachen.DE>
Also sprach Thomas Mellman:
> Is there an explaination of site_perl, 5.005 vs. 5.00503 (and
> presumably equivalent versions under 5.6.1), auto, cygwin-multi
> and i586-linux in a simple, concise, and complete format?
>
> I have linux at home (perl5 (5.0 patchlevel 5 subversion 3)) and cygwin
> at work (I think it's perl5 5.6.1) and I have the same problem in both.
>
> I use the following script to make perl modules:
>
> #!/bin/bash
>
> export PATH=/bin:$PATH
>
> perl Makefile.PL PREFIX=/opt INSTALLMAN1DIR=/opt/man/man1
> INSTALLMAN3DIR=/opt/man/man3
> make test
> make install
>
> Unfortunately, some things go into 5.00503, some into 5.005, some
> into site_perl and some not.
That shouldn't happen. The build process is quite smart: Makefile.PL
pulls all the relevant config options of the perl it was called with
from the respective Config.pm file and creates a Makefile that later
puts all the files in locations suitable for the particular perl.
If you are curious about the configuration of your perls, just run
% perl -V
and you'll see that this binary has all the crucial information such as
@INC paths and so on compiled in.
> I'm trying to build WWW::Search-Yahoo and nothing gets found, even
> though it's all there.
Be more specific. What does 'nothing gets found' mean?
> I've looked at Config.pm and ExtUtils::MakeMakefile pods but I'd have to
> spend many hours graphing out the set of possible targets and
> possibilities to understand what's going on.
All this should only be relevant to authors of modules, not so much for
the users of them, minus some exceptions: Sometimes it's necessary to
pass a flag to 'perl Makefile.PL' if you want some special behaviour
such as installing modules in a private location or compiling C
extensions with custom flags.
Tassilo
--
$_=q!",}])(tsuJ[{@"tnirp}3..0}_$;//::niam/s~=)]3[))_$-3(rellac(=_$({
pam{rekcahbus;})(rekcah{lrePbus;})(lreP{rehtonabus;})(rehtona{tsuJbus!;
$_=reverse;s/sub/(reverse"bus").chr(32)/xge;tr~\n~~d;eval;
------------------------------
Date: Fri, 17 Jan 2003 11:48:14 +0100
From: Thomas Mellman <thomas@mellman.net>
To: tassilo.parseval@post.rwth-aachen.de
Subject: Re: auto vs. ARCH vs. 5.005 vs. 5.00503 vs. site_perl etc. etc. etc
Message-Id: <3E27DF6E.4040402@mellman.net>
--------------070208000108050200010407
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Tassilo v. Parseval wrote:
>Also sprach Thomas Mellman:
>
>
>
>>Is there an explaination of site_perl, 5.005 vs. 5.00503 (and
>>presumably equivalent versions under 5.6.1), auto, cygwin-multi
>>and i586-linux in a simple, concise, and complete format?
>>
>>I have linux at home (perl5 (5.0 patchlevel 5 subversion 3)) and cygwin
>>at work (I think it's perl5 5.6.1) and I have the same problem in both.
>>
>>I use the following script to make perl modules:
>>
>>#!/bin/bash
>>
>>export PATH=/bin:$PATH
>>
>>perl Makefile.PL PREFIX=/opt INSTALLMAN1DIR=/opt/man/man1
>>INSTALLMAN3DIR=/opt/man/man3
>>make test
>>make install
>>
>>Unfortunately, some things go into 5.00503, some into 5.005, some
>>into site_perl and some not.
>>
>>
>
>That shouldn't happen. The build process is quite smart: Makefile.PL
>pulls all the relevant config options of the perl it was called with
>from the respective Config.pm file and creates a Makefile that later
>puts all the files in locations suitable for the particular perl.
>
>If you are curious about the configuration of your perls, just run
>
> % perl -V
>
>and you'll see that this binary has all the crucial information such as
>@INC paths and so on compiled in.
>
>
>
>>I'm trying to build WWW::Search-Yahoo and nothing gets found, even
>>though it's all there.
>>
>>
>
>Be more specific. What does 'nothing gets found' mean?
>
>
>
>>I've looked at Config.pm and ExtUtils::MakeMakefile pods but I'd have to
>>spend many hours graphing out the set of possible targets and
>>possibilities to understand what's going on.
>>
>>
>
>All this should only be relevant to authors of modules, not so much for
>the users of them, minus some exceptions: Sometimes it's necessary to
>pass a flag to 'perl Makefile.PL' if you want some special behaviour
>such as installing modules in a private location or compiling C
>extensions with custom flags.
>
>Tassilo
>
>
PERLLIB=/home/lib/perl5/local:/opt/lib/perl5/site_perl/5.6.1:/opt/lib/perl5/5.6.1
88 Installing
/opt/lib/perl5/site_perl/5.6.1/cygwin-multi/HTML/Parser.pm
103 ... (@INC contains:
/home/lib/perl5/local
/opt/lib/perl5/site_perl/5.6.1
/opt/lib/perl5/5.6.1
/usr/lib/perl5/5.6.1/cygwin-multi
/usr/lib/perl5/5.6.1
/usr/lib/perl5/site_perl/5.6.1/cygwin-multi
/usr/lib/perl5/site_perl/5.6.1
/usr/lib/perl5/site_perl .)
See lines 88 and 103.
This is from work, where there's just 5.6.1. At home, I'm at level
5.00503 and it's worse: I get stuff put variously into 5.005 and
5.00503.
It might be that my $PERLLIB is wrong, but how can I get directions
whether:
/opt/lib/perl5/5.6.1
/usr/lib/perl5/5.6.1/cygwin-multi
/usr/lib/perl5/site_perl
/opt/lib/perl5/site_perl/5.6.1
/usr/lib/perl5/site_perl/5.6.1/cygwin-multi
belongs there? What are the meanings of these things - what options
do they allow me? Is it correct to say that the "auto" directories
must be in auto-load variable somewhere?
1 ==== HTML-Tagset-3.03/make.0117 ====
2 entering .kshrc: [hB]
3 exiting .kshrc
4 Writing Makefile for HTML::Tagset
5 PERL_DL_NONLAZY=1 /bin/perl -Iblib/arch -Iblib/lib
-I/usr/lib/perl5/5.6.1/cygwin-multi -I/usr/lib/perl5/5.6.1 test.pl
6 1..1
7 ok 1
8 Manifying blib/man3/HTML.Tagset.3
9 Installing /opt/lib/perl5/site_perl/5.6.1/HTML/Tagset.pm
10 Installing /opt/man/man3/HTML.Tagset.3
11 Writing
/opt/lib/perl5/site_perl/5.6.1/cygwin-multi/auto/HTML/Tagset/.packlist
12 Appending installation info to
/opt/lib/perl5/5.6.1/cygwin-multi/perllocal.pod
13 ==== HTML-Parser-3.26/make.0117 ====
14 entering .kshrc: [hB]
15 exiting .kshrc
16 Writing Makefile for HTML::Parser
17 gcc -c -DPERL_USE_SAFE_PUTENV -fno-strict-aliasing
-I/usr/local/include -DUSEIMPORTLIB -O2 -DVERSION=\"3.26\"
-DXS_VERSION=\"3.26\" -I/usr/lib/perl5/5.6.1/cygwin-multi/CORE
-DMARKED_SECTION Parser.c
18 Running Mkbootstrap for HTML::Parser ()
19 chmod 644 Parser.bs
20 rm -f blib/arch/auto/HTML/Parser/Parser.dll
21 LD_RUN_PATH="" ld2 -s -L/usr/local/lib Parser.o -o
blib/arch/auto/HTML/Parser/Parser.dll
/usr/lib/perl5/5.6.1/cygwin-multi/CORE/libperl5_6_1.a
22 dllwrap --dllname Parser.dll --driver-name gcc --dlltool
dlltool --export-all-symbols --as as --output-def libParser.def
--output-lib libParser.a \
23 -s -L/usr/local/lib Parser.o
/usr/lib/perl5/5.6.1/cygwin-multi/CORE/libperl5_6_1.a
24 dllwrap: no export definition file provided.
25 Creating one, but that may not be what you want
26 mv Parser.dll libParser.a blib/arch/auto/HTML/Parser/
27 chmod 755 blib/arch/auto/HTML/Parser/Parser.dll
28 cp Parser.bs blib/arch/auto/HTML/Parser/Parser.bs
29 chmod 644 blib/arch/auto/HTML/Parser/Parser.bs
30 PERL_DL_NONLAZY=1 /bin/perl -Iblib/arch -Iblib/lib
-I/usr/lib/perl5/5.6.1/cygwin-multi -I/usr/lib/perl5/5.6.1 -e 'use
Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t
31 t/api_version.......ok
32 t/argspec-bad.......ok
33 t/argspec...........ok
34 t/argspec2..........ok
35 t/attr-encoded......ok
36 t/callback..........ok
37 t/case-sensitive....ok
38 t/cases.............ok
39 t/comment...........ok
40 t/crashme...........ok
41 t/declaration.......ok
42 t/default...........ok
43 t/dtext.............ok
44 t/entities..........ok
45 t/entities2.........ok
46 t/filter-methods....ok
47 t/filter............ok
48 t/handler-eof.......ok
49 t/handler...........ok
50 t/headparser-http...skipped test on this platform
51 t/headparser........ok
52 t/ignore............ok
53 t/largetags.........ok
54 t/linkextor-base....skipped test on this platform
55 t/linkextor-rel.....ok
56 t/magic.............ok
57 t/marked-sect.......ok
58 t/offset............ok
59 t/options...........ok
60 t/parsefile.........ok
61 t/parser............ok
62 t/plaintext.........ok
63 t/process...........ok
64 t/pullparser........ok
65 t/skipped-text......ok
66 t/textarea..........ok
67 t/tokeparser........ok
68 t/uentities.........skipped test on this platform
69 t/unbroken-text.....ok
70 t/xml-mode..........ok
71 All tests successful, 3 tests skipped.
72 Files=40, Tests=218, 13 wallclock secs ( 7.45 cusr + 4.12
csys = 11.57 CPU)
73 Manifying blib/man3/HTML.HeadParser.3
74 Manifying blib/man3/HTML.LinkExtor.3
75 Manifying blib/man3/HTML.PullParser.3
76 Manifying blib/man3/HTML.Parser.3
77 Manifying blib/man3/HTML.Entities.3
78 Manifying blib/man3/HTML.TokeParser.3
79 Manifying blib/man3/HTML.Filter.3
80 Installing
/opt/lib/perl5/site_perl/5.6.1/cygwin-multi/auto/HTML/Parser/libParser.a
81 Installing
/opt/lib/perl5/site_perl/5.6.1/cygwin-multi/auto/HTML/Parser/Parser.bs
82 Installing
/opt/lib/perl5/site_perl/5.6.1/cygwin-multi/auto/HTML/Parser/Parser.dll
83 Files found in blib/arch: installing files in blib/lib into
architecture dependent library tree
84 Installing
/opt/lib/perl5/site_perl/5.6.1/cygwin-multi/HTML/Entities.pm
85 Installing
/opt/lib/perl5/site_perl/5.6.1/cygwin-multi/HTML/Filter.pm
86 Installing
/opt/lib/perl5/site_perl/5.6.1/cygwin-multi/HTML/HeadParser.pm
87 Installing
/opt/lib/perl5/site_perl/5.6.1/cygwin-multi/HTML/LinkExtor.pm
88 Installing
/opt/lib/perl5/site_perl/5.6.1/cygwin-multi/HTML/Parser.pm
89 Installing
/opt/lib/perl5/site_perl/5.6.1/cygwin-multi/HTML/PullParser.pm
90 Installing
/opt/lib/perl5/site_perl/5.6.1/cygwin-multi/HTML/TokeParser.pm
91 Installing /opt/man/man3/HTML.Entities.3
92 Installing /opt/man/man3/HTML.Filter.3
93 Installing /opt/man/man3/HTML.HeadParser.3
94 Installing /opt/man/man3/HTML.LinkExtor.3
95 Installing /opt/man/man3/HTML.Parser.3
96 Installing /opt/man/man3/HTML.PullParser.3
97 Installing /opt/man/man3/HTML.TokeParser.3
98 Writing
/opt/lib/perl5/site_perl/5.6.1/cygwin-multi/auto/HTML/Parser/.packlist
99 Appending installation info to
/opt/lib/perl5/5.6.1/cygwin-multi/perllocal.pod
100 ==== HTML-Tree-3.16/make.0117 ====
101 entering .kshrc: [hB]
102 exiting .kshrc
103 Warning: prerequisite HTML::Parser failed to load: Can't
locate HTML/Parser.pm in @INC (@INC contains: /home/lib/perl5/local
/opt/lib/perl5/site_perl/5.6.1 /opt/lib/perl5/5.6.1
/usr/lib/perl5/5.6.1/cygwin-multi /usr/lib/perl5/5.6.1
/usr/lib/perl5/site_perl/5.6.1/cygwin-multi
/usr/lib/perl5/site_perl/5.6.1 /usr/lib/perl5/site_perl .) at (eval 4)
line 3.
104 Writing Makefile for HTML-Tree
105 PERL_DL_NONLAZY=1 /bin/perl -Iblib/arch -Iblib/lib
-I/usr/lib/perl5/5.6.1/cygwin-multi -I/usr/lib/perl5/5.6.1 -e 'use
Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t
106 t/building..........ok
107 t/clonei............ok
108 t/oldparse..........ok
109 t/parse.............ok
110 t/parsefile.........ok
111 t/split.............ok
112 All tests successful.
113 Files=6, Tests=212, 3 wallclock secs ( 2.23 cusr + 0.87 csys
= 3.10 CPU)
114 Manifying blib/man3/HTML.TreeBuilder.3
115 Manifying blib/man3/HTML.Element.3
116 Manifying blib/man3/HTML.Element.traverse.3
117 Manifying blib/man3/HTML.Tree.Scanning.3
118 Manifying blib/man3/HTML.Parse.3
119 Manifying blib/man3/HTML.AsSubs.3
120 Manifying blib/man3/HTML.Tree.AboutTrees.3
121 Manifying blib/man3/HTML.Tree.AboutObjects.3
122 Manifying blib/man3/HTML.Tree.3
123 Installing /opt/lib/perl5/site_perl/5.6.1/HTML/AsSubs.pm
124 Installing /opt/lib/perl5/site_perl/5.6.1/HTML/Element.pm
125 Installing /opt/lib/perl5/site_perl/5.6.1/HTML/Parse.pm
126 Installing /opt/lib/perl5/site_perl/5.6.1/HTML/Tree.pm
127 Installing /opt/lib/perl5/site_perl/5.6.1/HTML/TreeBuilder.pm
128 Installing
/opt/lib/perl5/site_perl/5.6.1/HTML/Tree/AboutObjects.pod
129 Installing /opt/lib/perl5/site_perl/5.6.1/HTML/Tree/AboutTrees.pod
130 Installing /opt/lib/perl5/site_perl/5.6.1/HTML/Tree/Scanning.pod
131 Installing /opt/lib/perl5/site_perl/5.6.1/HTML/Element/traverse.pm
132 Installing /opt/man/man3/HTML.AsSubs.3
133 Installing /opt/man/man3/HTML.Element.3
134 Installing /opt/man/man3/HTML.Element.traverse.3
135 Installing /opt/man/man3/HTML.Parse.3
136 Installing /opt/man/man3/HTML.Tree.3
137 Installing /opt/man/man3/HTML.Tree.AboutObjects.3
138 Installing /opt/man/man3/HTML.Tree.AboutTrees.3
139 Installing /opt/man/man3/HTML.Tree.Scanning.3
140 Installing /opt/man/man3/HTML.TreeBuilder.3
141 Writing
/opt/lib/perl5/site_perl/5.6.1/cygwin-multi/auto/HTML-Tree/.packlist
142 Appending installation info to
/opt/lib/perl5/5.6.1/cygwin-multi/perllocal.pod
--------------070208000108050200010407
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
<title></title>
</head>
<body>
Tassilo v. Parseval wrote:<br>
<blockquote type="cite" cite="midb08jon$qo2$1@nets3.rz.RWTH-Aachen.DE">
<pre wrap="">Also sprach Thomas Mellman:
</pre>
<blockquote type="cite">
<pre wrap="">Is there an explaination of site_perl, 5.005 vs. 5.00503 (and
presumably equivalent versions under 5.6.1), auto, cygwin-multi
and i586-linux in a simple, concise, and complete format?
I have linux at home (perl5 (5.0 patchlevel 5 subversion 3)) and cygwin
at work (I think it's perl5 5.6.1) and I have the same problem in both.
I use the following script to make perl modules:
#!/bin/bash
export PATH=/bin:$PATH
perl Makefile.PL PREFIX=/opt INSTALLMAN1DIR=/opt/man/man1
INSTALLMAN3DIR=/opt/man/man3
make test
make install
Unfortunately, some things go into 5.00503, some into 5.005, some
into site_perl and some not.
</pre>
</blockquote>
<pre wrap=""><!---->
That shouldn't happen. The build process is quite smart: Makefile.PL
pulls all the relevant config options of the perl it was called with
from the respective Config.pm file and creates a Makefile that later
puts all the files in locations suitable for the particular perl.
If you are curious about the configuration of your perls, just run
% perl -V
and you'll see that this binary has all the crucial information such as
@INC paths and so on compiled in.
</pre>
<blockquote type="cite">
<pre wrap="">I'm trying to build WWW::Search-Yahoo and nothing gets found, even
though it's all there.
</pre>
</blockquote>
<pre wrap=""><!---->
Be more specific. What does 'nothing gets found' mean?
</pre>
<blockquote type="cite">
<pre wrap="">I've looked at Config.pm and ExtUtils::MakeMakefile pods but I'd have to
spend many hours graphing out the set of possible targets and
possibilities to understand what's going on.
</pre>
</blockquote>
<pre wrap=""><!---->
All this should only be relevant to authors of modules, not so much for
the users of them, minus some exceptions: Sometimes it's necessary to
pass a flag to 'perl Makefile.PL' if you want some special behaviour
such as installing modules in a private location or compiling C
extensions with custom flags.
Tassilo
</pre>
</blockquote>
PERLLIB=/home/lib/perl5/local:/opt/lib/perl5/site_perl/5.6.1:/opt/lib/perl5/5.6.1<br>
<br>
88 Installing /opt/lib/perl5/site_perl/5.6.1/cygwin-multi/HTML/Parser.pm<br>
<br>
103 ... (@INC contains:<br>
/home/lib/perl5/local<br>
/opt/lib/perl5/site_perl/5.6.1<br>
/opt/lib/perl5/5.6.1<br>
/usr/lib/perl5/5.6.1/cygwin-multi<br>
/usr/lib/perl5/5.6.1<br>
/usr/lib/perl5/site_perl/5.6.1/cygwin-multi<br>
/usr/lib/perl5/site_perl/5.6.1<br>
/usr/lib/perl5/site_perl .)<br>
<br>
See lines 88 and 103.<br>
<br>
This is from work, where there's just 5.6.1. At home, I'm at level<br>
5.00503 and it's worse: I get stuff put variously into 5.005 and<br>
5.00503.<br>
<br>
It might be that my $PERLLIB is wrong, but how can I get directions<br>
whether:<br>
/opt/lib/perl5/5.6.1<br>
/usr/lib/perl5/5.6.1/cygwin-multi<br>
/usr/lib/perl5/site_perl<br>
/opt/lib/perl5/site_perl/5.6.1<br>
/usr/lib/perl5/site_perl/5.6.1/cygwin-multi<br>
belongs there? What are the meanings of these things - what options<br>
do they allow me? Is it correct to say that the "auto" directories<br>
must be in auto-load variable somewhere?<br>
<br>
<br>
<br>
1 ==== HTML-Tagset-3.03/make.0117 ====<br>
2 entering .kshrc: [hB] <br>
3 exiting .kshrc<br>
4 Writing Makefile for HTML::Tagset<br>
5 PERL_DL_NONLAZY=1 /bin/perl -Iblib/arch -Iblib/lib -I/usr/lib/perl5/5.6.1/cygwin-multi
-I/usr/lib/perl5/5.6.1 test.pl<br>
6 1..1<br>
7 ok 1<br>
8 Manifying blib/man3/HTML.Tagset.3<br>
9 Installing /opt/lib/perl5/site_perl/5.6.1/HTML/Tagset.pm<br>
10 Installing /opt/man/man3/HTML.Tagset.3<br>
11 Writing /opt/lib/perl5/site_perl/5.6.1/cygwin-multi/auto/HTML/Tagset/.packlist<br>
12 Appending installation info to /opt/lib/perl5/5.6.1/cygwin-multi/perllocal.pod<br>
<br>
<br>
13 ==== HTML-Parser-3.26/make.0117 ====<br>
14 entering .kshrc: [hB] <br>
15 exiting .kshrc<br>
16 Writing Makefile for HTML::Parser<br>
17 gcc -c -DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -I/usr/local/include
-DUSEIMPORTLIB -O2 -DVERSION=\"3.26\" -DXS_VERSION=\"3.26\" -I/usr/lib/perl5/5.6.1/cygwin-multi/CORE
-DMARKED_SECTION Parser.c<br>
18 Running Mkbootstrap for HTML::Parser ()<br>
19 chmod 644 Parser.bs<br>
20 rm -f blib/arch/auto/HTML/Parser/Parser.dll<br>
21 LD_RUN_PATH="" ld2 -s -L/usr/local/lib Parser.o -o blib/arch/auto/HTML/Parser/Parser.dll
/usr/lib/perl5/5.6.1/cygwin-multi/CORE/libperl5_6_1.a <br>
22 dllwrap --dllname Parser.dll --driver-name gcc --dlltool dlltool
--export-all-symbols --as as --output-def libParser.def --output-lib libParser.a
\<br>
23 -s -L/usr/local/lib Parser.o /usr/lib/perl5/5.6.1/cygwin-multi/CORE/libperl5_6_1.a<br>
24 dllwrap: no export definition file provided.<br>
25 Creating one, but that may not be what you want<br>
26 mv Parser.dll libParser.a blib/arch/auto/HTML/Parser/<br>
27 chmod 755 blib/arch/auto/HTML/Parser/Parser.dll<br>
28 cp Parser.bs blib/arch/auto/HTML/Parser/Parser.bs<br>
29 chmod 644 blib/arch/auto/HTML/Parser/Parser.bs<br>
30 PERL_DL_NONLAZY=1 /bin/perl -Iblib/arch -Iblib/lib -I/usr/lib/perl5/5.6.1/cygwin-multi
-I/usr/lib/perl5/5.6.1 -e 'use Test::Harness qw(&runtests $verbose);
$verbose=0; runtests @ARGV;' t/*.t<br>
31 t/api_version.......ok<br>
32 t/argspec-bad.......ok<br>
33 t/argspec...........ok<br>
34 t/argspec2..........ok<br>
35 t/attr-encoded......ok<br>
36 t/callback..........ok<br>
37 t/case-sensitive....ok<br>
38 t/cases.............ok<br>
39 t/comment...........ok<br>
40 t/crashme...........ok<br>
41 t/declaration.......ok<br>
42 t/default...........ok<br>
43 t/dtext.............ok<br>
44 t/entities..........ok<br>
45 t/entities2.........ok<br>
46 t/filter-methods....ok<br>
47 t/filter............ok<br>
48 t/handler-eof.......ok<br>
49 t/handler...........ok<br>
50 t/headparser-http...skipped test on this platform<br>
51 t/headparser........ok<br>
52 t/ignore............ok<br>
53 t/largetags.........ok<br>
54 t/linkextor-base....skipped test on this platform<br>
55 t/linkextor-rel.....ok<br>
56 t/magic.............ok<br>
57 t/marked-sect.......ok<br>
58 t/offset............ok<br>
59 t/options...........ok<br>
60 t/parsefile.........ok<br>
61 t/parser............ok<br>
62 t/plaintext.........ok<br>
63 t/process...........ok<br>
64 t/pullparser........ok<br>
65 t/skipped-text......ok<br>
66 t/textarea..........ok<br>
67 t/tokeparser........ok<br>
68 t/uentities.........skipped test on this platform<br>
69 t/unbroken-text.....ok<br>
70 t/xml-mode..........ok<br>
71 All tests successful, 3 tests skipped.<br>
72 Files=40, Tests=218, 13 wallclock secs ( 7.45 cusr + 4.12 csys
= 11.57 CPU)<br>
73 Manifying blib/man3/HTML.HeadParser.3<br>
74 Manifying blib/man3/HTML.LinkExtor.3<br>
75 Manifying blib/man3/HTML.PullParser.3<br>
76 Manifying blib/man3/HTML.Parser.3<br>
77 Manifying blib/man3/HTML.Entities.3<br>
78 Manifying blib/man3/HTML.TokeParser.3<br>
79 Manifying blib/man3/HTML.Filter.3<br>
80 Installing /opt/lib/perl5/site_perl/5.6.1/cygwin-multi/auto/HTML/Parser/libParser.a<br>
81 Installing /opt/lib/perl5/site_perl/5.6.1/cygwin-multi/auto/HTML/Parser/Parser.bs<br>
82 Installing /opt/lib/perl5/site_perl/5.6.1/cygwin-multi/auto/HTML/Parser/Parser.dll<br>
83 Files found in blib/arch: installing files in blib/lib into architecture
dependent library tree<br>
84 Installing /opt/lib/perl5/site_perl/5.6.1/cygwin-multi/HTML/Entities.pm<br>
85 Installing /opt/lib/perl5/site_perl/5.6.1/cygwin-multi/HTML/Filter.pm<br>
86 Installing /opt/lib/perl5/site_perl/5.6.1/cygwin-multi/HTML/HeadParser.pm<br>
87 Installing /opt/lib/perl5/site_perl/5.6.1/cygwin-multi/HTML/LinkExtor.pm<br>
88 Installing /opt/lib/perl5/site_perl/5.6.1/cygwin-multi/HTML/Parser.pm<br>
89 Installing /opt/lib/perl5/site_perl/5.6.1/cygwin-multi/HTML/PullParser.pm<br>
90 Installing /opt/lib/perl5/site_perl/5.6.1/cygwin-multi/HTML/TokeParser.pm<br>
91 Installing /opt/man/man3/HTML.Entities.3<br>
92 Installing /opt/man/man3/HTML.Filter.3<br>
93 Installing /opt/man/man3/HTML.HeadParser.3<br>
94 Installing /opt/man/man3/HTML.LinkExtor.3<br>
95 Installing /opt/man/man3/HTML.Parser.3<br>
96 Installing /opt/man/man3/HTML.PullParser.3<br>
97 Installing /opt/man/man3/HTML.TokeParser.3<br>
98 Writing /opt/lib/perl5/site_perl/5.6.1/cygwin-multi/auto/HTML/Parser/.packlist<br>
99 Appending installation info to /opt/lib/perl5/5.6.1/cygwin-multi/perllocal.pod<br>
<br>
<br>
100 ==== HTML-Tree-3.16/make.0117 ====<br>
101 entering .kshrc: [hB] <br>
102 exiting .kshrc<br>
103 Warning: prerequisite HTML::Parser failed to load: Can't locate
HTML/Parser.pm in @INC (@INC contains: /home/lib/perl5/local /opt/lib/perl5/site_perl/5.6.1
/opt/lib/perl5/5.6.1 /usr/lib/perl5/5.6.1/cygwin-multi /usr/lib/perl5/5.6.1
/usr/lib/perl5/site_perl/5.6.1/cygwin-multi /usr/lib/perl5/site_perl/5.6.1
/usr/lib/perl5/site_perl .) at (eval 4) line 3.<br>
104 Writing Makefile for HTML-Tree<br>
105 PERL_DL_NONLAZY=1 /bin/perl -Iblib/arch -Iblib/lib -I/usr/lib/perl5/5.6.1/cygwin-multi
-I/usr/lib/perl5/5.6.1 -e 'use Test::Harness qw(&runtests $verbose);
$verbose=0; runtests @ARGV;' t/*.t<br>
106 t/building..........ok<br>
107 t/clonei............ok<br>
108 t/oldparse..........ok<br>
109 t/parse.............ok<br>
110 t/parsefile.........ok<br>
111 t/split.............ok<br>
112 All tests successful.<br>
113 Files=6, Tests=212, 3 wallclock secs ( 2.23 cusr + 0.87 csys
= 3.10 CPU)<br>
114 Manifying blib/man3/HTML.TreeBuilder.3<br>
115 Manifying blib/man3/HTML.Element.3<br>
116 Manifying blib/man3/HTML.Element.traverse.3<br>
117 Manifying blib/man3/HTML.Tree.Scanning.3<br>
118 Manifying blib/man3/HTML.Parse.3<br>
119 Manifying blib/man3/HTML.AsSubs.3<br>
120 Manifying blib/man3/HTML.Tree.AboutTrees.3<br>
121 Manifying blib/man3/HTML.Tree.AboutObjects.3<br>
122 Manifying blib/man3/HTML.Tree.3<br>
123 Installing /opt/lib/perl5/site_perl/5.6.1/HTML/AsSubs.pm<br>
124 Installing /opt/lib/perl5/site_perl/5.6.1/HTML/Element.pm<br>
125 Installing /opt/lib/perl5/site_perl/5.6.1/HTML/Parse.pm<br>
126 Installing /opt/lib/perl5/site_perl/5.6.1/HTML/Tree.pm<br>
127 Installing /opt/lib/perl5/site_perl/5.6.1/HTML/TreeBuilder.pm<br>
128 Installing /opt/lib/perl5/site_perl/5.6.1/HTML/Tree/AboutObjects.pod<br>
129 Installing /opt/lib/perl5/site_perl/5.6.1/HTML/Tree/AboutTrees.pod<br>
130 Installing /opt/lib/perl5/site_perl/5.6.1/HTML/Tree/Scanning.pod<br>
131 Installing /opt/lib/perl5/site_perl/5.6.1/HTML/Element/traverse.pm<br>
132 Installing /opt/man/man3/HTML.AsSubs.3<br>
133 Installing /opt/man/man3/HTML.Element.3<br>
134 Installing /opt/man/man3/HTML.Element.traverse.3<br>
135 Installing /opt/man/man3/HTML.Parse.3<br>
136 Installing /opt/man/man3/HTML.Tree.3<br>
137 Installing /opt/man/man3/HTML.Tree.AboutObjects.3<br>
138 Installing /opt/man/man3/HTML.Tree.AboutTrees.3<br>
139 Installing /opt/man/man3/HTML.Tree.Scanning.3<br>
140 Installing /opt/man/man3/HTML.TreeBuilder.3<br>
141 Writing /opt/lib/perl5/site_perl/5.6.1/cygwin-multi/auto/HTML-Tree/.packlist<br>
142 Appending installation info to /opt/lib/perl5/5.6.1/cygwin-multi/perllocal.pod<br>
<br>
<br>
</body>
</html>
--------------070208000108050200010407--
------------------------------
Date: 17 Jan 2003 03:00:11 -0800
From: desau@aisc.ac.cy (Dale)
Subject: Code-page Browser Output
Message-Id: <f748e986.0301170300.6b92b1d4@posting.google.com>
I have a script which extracts data in Arabic from a MySQL database
and sends it to the user's browser. This works fine with the standard
print "Content-type: text/html\n\n";
followed by the appropriate meta tag in the html as in
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1256">
I now need to extract the same data and send it back to the browser in
csv format. However, in using
print "Content-type: application/x-msexcel\n\n";
I am not able to change the code-page to windows-1256 and so the
in-browser Excel sheet displays my csv data without the Arabic
properly handled.
Here's the question. Is it possible to include the code-page
information in the 'Content-type' line such as
print "Content-type: application/x-msexcel Code-page:
windows-1256\n\n";
or something similar? Or is there another way of accomplishing what I
want?
Any help much appreciated
DRE
------------------------------
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.
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 V10 Issue 4418
***************************************