[18585] in Perl-Users-Digest
Perl-Users Digest, Issue: 753 Volume: 10
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Tue Apr 24 14:07:11 2001
Date: Tue, 24 Apr 2001 11: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: <988135510-v10-i753@ruby.oce.orst.edu>
Content-Type: text
Perl-Users Digest Tue, 24 Apr 2001 Volume: 10 Number: 753
Today's topics:
Re: 5.6.0 vs. 5.6.1 (was: Re: Issue with 5.004 to 5.6 u <rick.delaney@home.com>
[Very OT] Sex and apathy nobull@mail.com
Re: [Very OT] Sex and apathy (John Joseph Trammell)
Re: [Very OT] Sex and apathy <mischief@velma.motion.net>
Re: avoid having to hit the enter key <sthomas@ws5120.nc.fnc.fujitsu.com>
Re: Can I include local perl snipits? <silicontao_roy@technologist.com>
Re: Can I include local perl snipits? <comdog@panix.com>
Re: Can I include local perl snipits? nobull@mail.com
Re: Can I include local perl snipits? (Abigail)
Re: Chicago Perl Consultants Needed <mischief@velma.motion.net>
Re: Compression (to .zip/.gz) using system/backticks <webmaster@webdragon.unmunge.net>
Re: Compression (to .zip/.gz) using system/backticks nobull@mail.com
counter <kris.v@net2view.be>
Re: Daemon: should the parent exit or _exit after the f (T R Barrett)
Re: Daemon: should the parent exit or _exit after the f <mischief@velma.motion.net>
Re: expressions (Anno Siegel)
Re: expressions nobull@mail.com
Re: fakessi <ubl@schaffhausen.de>
Re: GD/TrueType weirdness (SOLVED) <dharding@uiuc.edu>
help needed with strings <gglackin@nospam.eircom.net>
Re: help needed with strings (Greg Bacon)
Re: help needed with strings (Craig Berry)
Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Tue, 24 Apr 2001 13:10:16 GMT
From: Rick Delaney <rick.delaney@home.com>
Subject: Re: 5.6.0 vs. 5.6.1 (was: Re: Issue with 5.004 to 5.6 upgrade)
Message-Id: <3AE57E74.A1492409@home.com>
Tad McClellan wrote:
>
> H. Merijn Brand <h.m.brand@hccnet.nl> wrote:
> >Bart Lateur <bart.lateur@skynet.be> wrote in
>
> >>But what exactly are these problems with 5.6.0, that hopefully got fixed
> >>in 5.6.1? And are there any new problems in 5.6.1 that people already
> >>know of?
> >
> >*lots of* memory leaks
>
> Err, which of the two questions is that answer for?
>
> Is it, "5.6.0's leaks were plugged in 5.6.1",
> or is it "5.6.1 has leaks"?
Well, both of those are true. But "lots of" refers to 5.6.1 fixes for
5.6.0. (The leaks in 5.6.1 should not be too easy to stumble across).
--
Rick Delaney
rick.delaney@home.com
------------------------------
Date: 24 Apr 2001 17:52:45 +0100
From: nobull@mail.com
Subject: [Very OT] Sex and apathy
Message-Id: <u9zod6kzoi.fsf_-_@wcl-l.bham.ac.uk>
"errol brown" <errolbrown@hotmail.com> writes:
> > Hmmm..., another charter member of the cplm catfish club? ;-)
>
> Yeah, the group is full of them. I find it really difficult to believe that
> *so many* people can't get sex....
So you believe having sex causes apathy to towards anti-social
behaviour? Can you cite any relevant research to back this up?
--
\\ ( )
. _\\__[oo
.__/ \\ /\@
. l___\\
# ll l\\
###LL LL\\
------------------------------
Date: Tue, 24 Apr 2001 17:13:00 GMT
From: trammell@bayazid.hypersloth.invalid (John Joseph Trammell)
Subject: Re: [Very OT] Sex and apathy
Message-Id: <slrn9ebaqi.fji.trammell@bayazid.hypersloth.net>
On 24 Apr 2001 17:52:45 +0100, nobull@mail.com <nobull@mail.com> wrote:
> "errol brown" <errolbrown@hotmail.com> writes:
[unattributed quote snipped]
> > Yeah, the group is full of them. I find it really difficult to believe that
> > *so many* people can't get sex....
>
> So you believe having sex causes apathy to towards anti-social
> behaviour? Can you cite any relevant research to back this up?
Sure, I've got all the references right here... ahhh, what's the use?
--
Just Another Perl Hacker.
------------------------------
Date: Tue, 24 Apr 2001 17:32:50 -0000
From: Chris Stith <mischief@velma.motion.net>
Subject: Re: [Very OT] Sex and apathy
Message-Id: <tebe62bi7cmk7a@corp.supernews.com>
In comp.lang.perl.misc nobull@mail.com wrote:
> "errol brown" <errolbrown@hotmail.com> writes:
>> > Hmmm..., another charter member of the cplm catfish club? ;-)
>>
>> Yeah, the group is full of them. I find it really difficult
>> to believe that *so many* people can't get sex....
> So you believe having sex causes apathy to towards anti-social
> behaviour? Can you cite any relevant research to back this up?
I have no research, but it seems to be a common connection
anecdotally.
Sex is a form of instense attention being paid back and
forth (when doen correcly ;-). Perhaps this lets someone
forego acting out for attention. Just a hypothesis.
Followups set to soc.sexuality.general
--
Christopher E. Stith
For the pleasure of others, please adhere to the following
rules when visiting your park:
No swimming. No fishing. No flying kites. No frisbees.
No audio equipment. Stay off grass. No pets. No running.
------------------------------
Date: 24 Apr 2001 09:26:37 -0400
From: Samuel Thomas <sthomas@ws5120.nc.fnc.fujitsu.com>
Subject: Re: avoid having to hit the enter key
Message-Id: <tl6oftm8m42.fsf@ws5120.nc.fnc.fujitsu.com>
Your script is pausing because your system is taking 'cooked' input.
use the Term::ReadKey module from CPAN to get the functionality you want
use Term::ReadKey
ReadMode 'cbreak';
$key = ReadKey(0);
ReadMode 'normal';
--
/\
Sam Thomas / \
Ext 1161 / ** \
/______\
------------------------------
Date: Tue, 24 Apr 2001 14:34:21 GMT
From: God_Of_Pain <silicontao_roy@technologist.com>
Subject: Re: Can I include local perl snipits?
Message-Id: <N9gF6.24$5t2.26723@news0.telusplanet.net>
Sound good. Can you give me a short example of how to inlude a lib?
Or point me to the docs on it.
Thanks.
xris wrote:
> In article <3AE50448.B5CDC78C@home.com>, r1ckey <r1ckey@home.com>
> wrote:
>
>> Perl packages is what you're looking for...For instance,
>
> not necessarily. If he just wants to include a few functions, there's
> no need to create the overhead of a package...
>
> I do this in my own work, with what I've called .lib files - basically
> just libraries of functions that I "require" in when I need them. Most
> of them are too random to bother grouping together within an
> object/package.
>
> Plus, that way, you don't need to specify the package name every time
> you want to call the subroutines.
>
>
------------------------------
Date: Tue, 24 Apr 2001 11:09:29 -0400
From: brian d foy <comdog@panix.com>
Subject: Re: Can I include local perl snipits?
Message-Id: <comdog-BC8446.11092924042001@news.panix.com>
In article <N9gF6.24$5t2.26723@news0.telusplanet.net>,
silicontao_roy@technologist.com wrote:
> Sound good. Can you give me a short example of how to inlude a lib?
> Or point me to the docs on it.
look at either the use() or require() functions.
--
brian d foy <comdog@panix.com>
------------------------------
Date: 24 Apr 2001 17:43:00 +0100
From: nobull@mail.com
Subject: Re: Can I include local perl snipits?
Message-Id: <u93daymep7.fsf@wcl-l.bham.ac.uk>
God_Of_Pain <silicontao_roy@technologist.com> writes:
> Newsgroups: alt.perl,comp.lang.perl,comp.lang.perl.misc,comp.lang.perl.modules
You do realise comp.lang.perl does not exist don't you?
> Followup-To: alt.perl
Ignored! Most people who know Perl answers won't read alt.perl so by
directing answers away from the real groups you will make you question
appear not to have been answered.
> On my web site I have a cgi-bin and I am using a few functions over and
> over again. I don't have access to the perl modules directory.
FAQ: "How do I keep my own module/library directory?"
> Is there some way to put my functions into a command file in my cgi-bin and
> just include them like #include "my_file" in C?
Yes, the old Perl4-style libraries still work in Perl5. See also the
answers given when this question was asked yesterday. Indeed if you
read up on Perl5 modules you'll find they are really largely a set of
conventions about how to use the old package() and require() and
BEGIN{} mechanisms together to produce modular code.
> Should I write a local perl module?
Yes.
> Can I have a module in my cgi-bin?
FAQ: "How do I add the directory my program lives in to the
module/library search path?"
--
\\ ( )
. _\\__[oo
.__/ \\ /\@
. l___\\
# ll l\\
###LL LL\\
------------------------------
Date: Tue, 24 Apr 2001 16:57:59 +0000 (UTC)
From: abigail@foad.org (Abigail)
Subject: Re: Can I include local perl snipits?
Message-Id: <slrn9ebc4n.tho.abigail@tsathoggua.rlyeh.net>
xris (xris@dont.send.spam) wrote on MMDCCXCIII September MCMXCIII in
<URL:news:xris-56AB63.00095624042001@news.evergo.net>:
?? In article <3AE50448.B5CDC78C@home.com>, r1ckey <r1ckey@home.com>
?? wrote:
??
?? > Perl packages is what you're looking for...For instance,
??
?? not necessarily. If he just wants to include a few functions, there's
?? no need to create the overhead of a package...
Pray tell us, *what* overhead are you referring to? How do you create
a (named) function that isn't in a package?
?? I do this in my own work, with what I've called .lib files - basically
?? just libraries of functions that I "require" in when I need them. Most
?? of them are too random to bother grouping together within an
?? object/package.
??
?? Plus, that way, you don't need to specify the package name every time
?? you want to call the subroutines.
Well, that's why mother nature gave us Exporter.
Abigail
--
sub _'_{$_'_=~s/$a/$_/}map{$$_=$Z++}Y,a..z,A..X;*{($_::_=sprintf+q=%X==>"$A$Y".
"$b$r$T$u")=~s~0~O~g;map+_::_,U=>T=>L=>$Z;$_::_}=*_;sub _{print+/.*::(.*)/s};;;
*_'_=*{chr($b*$e)};*__=*{chr(1<<$e)}; # Perl 5.6.0 broke this...
_::_(r(e(k(c(a(H(__(l(r(e(P(__(r(e(h(t(o(n(a(__(t(us(J())))))))))))))))))))))))
------------------------------
Date: Tue, 24 Apr 2001 17:24:22 -0000
From: Chris Stith <mischief@velma.motion.net>
Subject: Re: Chicago Perl Consultants Needed
Message-Id: <tebdm6m62g6l62@corp.supernews.com>
Mark Lewis <mark@marklewisinc.com> wrote:
> Our client in Downtown Chicago has an immediate need for several Perl
> Developers (Both Full-Time and Contract!). Successful candidates will be
This is a job offer. I don't see the word 'job' in
'comp.lang.perl.misc'.
> able to join a large progressive company that is a leader in their industry
> (Financials). Our client is looking for several experienced developers who
> can help move the client to an EJB environment. This is an excellent
> opportunity for income and career growth for motivated and talented
> individuals.
If you want Java people, why are you looking in a Perl group? EJB
stands for Enterprise Java Beans.
> Candidates must possess: 2+ years of Perl Development. Some other Object
> Oriented language background. Excellent understanding of the Perl language.
> Ability to troubleshoot and resolve programming problems. Ability to work on
> multiple projects.
Perl is not strictly an Object Oriented language. It can be
used as such, but it has enough features to be used as a
functional or procedural language as well. 'Perl Development'
is vague, although context helps you here. You should probably
be clearer on development of perl v. development using Perl.
In this section of your post, most of the sentences aren't.
> Our firm specializes in recruiting computer professionals for both permanent
> and contract positions. We have many openings across a wide range of
> software platforms. For consideration, please either attach your resume (as
> a separate MS Word or Wordperfect file) to an email message, or you can fax
Why would I want to send you a Microsoft Word file? If you can't
read text, HTML, RTF, or PDF, then you aren't really a computer
company. I wouldn't want to work with a temp agency that just
happens to dela mostly with I.T. people.
> your resume to us (in fine resolution mode) at the number below. All
> inquiries are treated as strictly confidential. You MUST be a US citizen or
> permanent resident to applyThanks and have a great day!
All inquiries must be kept confidiential according to employment
law. This is not a selling point.
I would have a better day if you posted this in a jobs group so
I could find it when searching for jobs, instead of in a discussion
group where I'm trying to discuss the language I use in my current
job. In fact, if my boss sees me reading a job offer, I will be
very upset with you for putting this here. You have no right to
potentially damage my job standing with my employer simply because
you are too lazy to find the correct group.
Chris
--
Christopher E. Stith
Parking for people we like only. All other vehicles will be vandalized.
------------------------------
Date: 24 Apr 2001 17:05:34 GMT
From: "Scott R. Godin" <webmaster@webdragon.unmunge.net>
Subject: Re: Compression (to .zip/.gz) using system/backticks
Message-Id: <9c4bou$qu0$0@216.155.32.157>
In article <45raet0m95lob5t9lv7d5d2ulshifvj88b@4ax.com>,
Bart Lateur <bart.lateur@skynet.be> wrote:
| Scott R. Godin wrote:
|
| >EVEN if I installed them myself by drag-copying them over FTP, since I
| >can't get Telnet access there, it's still a royal pain to get them to
| >add the dang things to the web group because they're so paranoid about
| >things breaking. *eyerolls*
|
| They don't have to. You can have your own lib directiry. See the FAQ,
| perlfaq8:
|
| How do I keep my own module/library directory?
|
| How do I add the directory my program lives in to the module/library
| search path?
heh, no I know about that -- I have CPAN.pm installed on my shell and
have dozens of locally installed modules via
LIB=~/perl/lib/perl5/site_perl;PREFIX=~/perl/lib/perl5/site_perl :-)
and they just upgraded the box to FreeBSD 4.3-STABLE and Perl 5.005
<grin> More new stuff to learn.
-- what I meant was getting the admins at this other site to add any
modules I ftp over, into the 'www' group so that they are accessible by
the web, hence my comment about 'group'.
| And, from an earlier post that didn't appear in my newsfeed:
|
| > 1> there is a (slight to moderate) possibility of it being used for
| > abuse, in that the user could enter an incorrect (i.e. someone else's)
| > mail address
|
| So, require that these users "log in", i.e. require the need for a
| password that they can ask for, but which only gets mailed to their
| e-mail account. Then you *know* their e-mail address.
Possible, but I'm trying to create a tool of convenience, that just
creates a template-driven html/txt file pair. I'll think about it, for
sure, and that might be a viable option, however there still remains the
problem of how to get the file to them -- since I'd still in any case
have to solve that issue. (getting the modules installed and permissions
granted [sic])
--
unmunge e-mail here:
#!perl -w
print map {chr(ord($_)-3)} split //, "zhepdvwhuCzhegudjrq1qhw";
# ( damn spammers. *shakes fist* take a hint. =:P )
------------------------------
Date: 24 Apr 2001 18:35:32 +0100
From: nobull@mail.com
Subject: Re: Compression (to .zip/.gz) using system/backticks
Message-Id: <u9r8yikxp7.fsf@wcl-l.bham.ac.uk>
Sorry folks this really now has nothing whatever to do with Perl.
Relocating to comp.unix.misc.
"Scott R. Godin" <webmaster@webdragon.unmunge.net> writes:
> In article <u9lmoqmyfx.fsf@wcl-l.bham.ac.uk>, nobull@mail.com wrote:
>
>
> | > 2> I'd most likely want to use Mail::Mailer or MIME::Lite to send
> | > the files as attachments, and in either case, it would require the host
> | > to install those perl modules.
> |
> | Why? AFAIK these are flagged on CPAN as pure Perl except MIME::Base64
> | which is 'h' meaning the non-Perl bit is optional.
>
> EVEN if I installed them myself by drag-copying them over FTP, since I
> can't get Telnet access there, it's still a royal pain to get them to
> add the dang things to the web group because they're so paranoid about
> things breaking. *eyerolls*
So they don't let you FTP your scripts directly into the web server
area, they vet what you upload. Sounds pointless to me.
> | http://www.info-zip.org/pub/infozip/
>
> So what you're saying is that to the best of your knowledge, unless
> they've already gone ahead and installed some sort of .zip compression
> scheme other than gzip, I'd still have to beg them to install something
> else.
Well Info-Zip is now fairly standard on many Unicies.
However I think you are perhaps confused about what is is you are
looking for. You seem to believe you are looking for a compression
format. You are wrong. You are looking for an archiving format.
[PK]ZIP format is a compressed archive format. GZIP is a compression
format.
Since wht you should be looking for is an archive format that is
supported by every Unix under the sun and also by by WinZip how about
'tar' format?
> | > `cat $file1 $file2 | gzip > ${fileprefix}.gz`
> | > or die "$!";
> | Do you realise that when
> | the user unpacks the .gz file they'll get a single file with no way to
> | know where to split it to get the two component files?
>
> That exact line is what I *DID* get from reading the gzip manpage,
> nobull... are you saying it's NOT correct? *scratching head*
It is correct iff you want you want to do is what it does.
> or just not correct for a windows user?
Windows is not relevant here.
Simply joining two files with 'cat' is not correct if you want to be
able to separate them again and remember their names. If you want to
be able to separate them again and recover their names then you want
to put them into some sort of archive file (e.g. tar, cpio, arj, zip,
lha ...).
system("tar cf ${fileprefix}.tar $file1 $file2"); # Stone-age tar
system("tar -cf ${fileprefix}.tar $file1 $file2"); # GNU tar
Note: You can use the stone-age syntax with GNU tar as GNU tar will
spot that there's no - on the first agument and switch to a
backward-compatibility command parsing mode.
You may also want to gzip this archive but that's another matter.
system("tar cf - $file1 $file2 | gzip >${fileprefix}.tar.gz"); # Stone-age tar
system("tar -czf ${fileprefix}.tar.gz $file1 $file2"); # GNU tar
If you do use a .tar.gz file then be aware that WinZip will ask when
you open it if it should decompress the .tar.gz and open the .tar
file.
> | > Or would you do it a different way?
> |
> | I would use, and indeed have used, Info-Zip for implementing
> | multi-file download from a CGI.
>
> Which gets me running in circles again, begging them to install
> something.
So use tar instead.
> I'm more or less exploring possible avenues of solving my problem with
> getting the two files to the end-user.
And you wandered off down the "compression format" avenue, when you
should have been going down the "archiving format" avenue.
--
\\ ( )
. _\\__[oo
.__/ \\ /\@
. l___\\
# ll l\\
###LL LL\\
------------------------------
Date: Tue, 24 Apr 2001 17:24:50 +0200
From: "Kris van der Mast" <kris.v@net2view.be>
Subject: counter
Message-Id: <3ae59ab2$0$3117$456d72a3@news.skynet.be>
Hi,
I'm new to Perl but I find it very interesting.
Currently I'm searching for just a normal website counter that keeps every
"hit" on the fist page in a text file.
The client doesn't get to see this counter but with another perl script a
administrator must be able to get the counter.
If anyone knows where I can find such scripts, please let me know.
kris.vtest@net2view.be
------------------------------
Date: Tue, 24 Apr 2001 15:47:02 GMT
From: ccstrb@bath.ac.uk (T R Barrett)
Subject: Re: Daemon: should the parent exit or _exit after the fork?
Message-Id: <GCAzuE.1y2.B.ss1@bath.ac.uk>
In article <slrn9e4ero.88k.garry@zfw.zvolve.net>,
garry@ifr.zvolve.net (Garry Williams) writes:
> By the way, perl calls _exit(2) when you call Perl's exit (on Solaris
> anyway):
So how come when I call fork in my Perl module when there is unflushed
data in the STDOUT buffer, I get 2 of everything printed on my terminal?
According to the Solaris docs I've read, _exit(2) should avoid this.
Of course, it would be even nicer to be able to flush all output buffers
_before_ forking (and probably close all the handles in the child
immediately after forking, for neatness), but I can't seem to find any
way of enumerating all open files in Perl.
Cheers,
Tim Barrett
--
Systems Programmer - Bath University Computing Services
T.R.Barrett@bath.ac.uk
------------------------------
Date: Tue, 24 Apr 2001 17:03:47 -0000
From: Chris Stith <mischief@velma.motion.net>
Subject: Re: Daemon: should the parent exit or _exit after the fork?
Message-Id: <tebcfjss7u6665@corp.supernews.com>
Philip Newton <pne-news-20010424@newton.digitalspace.net> wrote:
> On 23 Apr 2001 17:13:54 GMT, anno4000@lublin.zrz.tu-berlin.de (Anno
> Siegel) wrote:
>> What makes the final flush special? Parent and kid will have flushed
>> in an un-coordinated way all along.
> There is no "all along"; the first thing the parent does after forking
> is to exit. It doesn't write to file handles any more. But it
> shouldn't clean up structure that will continue to be used by the
> child.
This is common when writing a daemonizing program, but there
is no rule saying it must be the case. The parent could well
run for a while before it exits. As long as the child
(preferably grandchild) is running under a different GID and
has no ties to STDIN or STDOUT, then it is a daemon, no matter
how long it took to get that way.
I have a server, in fact, in which the grandparent tests a
transaction with the grandchild before exiting. This way, it
takes an extra two seconds or so of my terminal time, but I
can be sure the system is working every time I start it.
Chris
--
Christopher E. Stith
Get real! This is a discussion group, not a helpdesk. You post
something, we discuss its implications. If the discussion happens to
answer a question you've asked, that's incidental. -- nobull, clp.misc
------------------------------
Date: 24 Apr 2001 13:27:34 GMT
From: anno4000@lublin.zrz.tu-berlin.de (Anno Siegel)
Subject: Re: expressions
Message-Id: <9c3v06$ojq$2@mamenchi.zrz.TU-Berlin.DE>
According to xris <xris@dont.send.spam>:
> In article <3AE43FF8.57C0457B@hotmail.com>, zak <zakaria1@hotmail.com>
> wrote:
>
> > $variable= " name is $name";
> > $name="joe";
> > print "$variable";
> > is it possible at all? Am i missing something? Thanks.
>
> try declaring $name *before* using it in the expression (your expression
> is interpreted before declaring the name, not every time $variable is
> accessed).
Please use terminology correctly (or not at all). The point isn't
whether the variable is declared at the time of interpolation, it's
whether it's defined. In Perl, as in many languages, you can declare
a variable without assigning it a value.
Anno
------------------------------
Date: 24 Apr 2001 17:59:02 +0100
From: nobull@mail.com
Subject: Re: expressions
Message-Id: <u9vgnukze1.fsf@wcl-l.bham.ac.uk>
zak <zakaria1@hotmail.com> writes:
> Subject: expressions
Please try to be less thoughtless in your subject lines. Remeber a
the subject line is what people see when they use a Usenet search
engine. Just because on this occasion you are comming here to get
rather than give help does not mean you should adopt the mind-set "I
only take, I give nothing back to the community".
Subject: storing expressions in variables
> $variable= " name is $name";
> $name="joe";
> print "$variable";
>
> The output is : name is
> I am expecting : name is joe
>
> is it possible at all?
Yes, but your code doesn't work because the expression in line 1 is
evaluated in line 1 and the result is put in the variable. What you
want to do is somehow have line 1 put the expression itself in the
variable and have line 3 evaluate the expression.
Solution one:
my $name='This does not get printed'; # Just to make a point
my $variable= q{ " name is $name" }; # q{} same as single quotes
my $name="joe"; # New my() variable hides previous one
print eval $variable; # Uses the $name that is in scope here
Note: eval() is evil. Avoid this solution if you sensibly can.
Solution two:
my $name; # Must be declared before the sub{}
my $variable= sub { " name is $name" };
$name="joe"; # Alter the $name used in the closure
my $name='This does not get printed'; # Just to make a point
print &$variable; # Uses the $name in scope in closure
Solution three:
See FAQ: "How can I expand variables in text strings?"
--
\\ ( )
. _\\__[oo
.__/ \\ /\@
. l___\\
# ll l\\
###LL LL\\
------------------------------
Date: Tue, 24 Apr 2001 17:54:47 +0100
From: Malte Ubl <ubl@schaffhausen.de>
Subject: Re: fakessi
Message-Id: <3AE5AFD8.409BC7F7@schaffhausen.de>
John Michael schrieb:
>
> I'm looking for a copy of
> fakessi.pl
> and can't find it. I have looked at the locations listed in the CGI
> programming book and they no longer exist.
> http://sw.cse.bris.ac.uk/WebTools/fakessi.html
Its really easy to find:
print $hash_of_all_files_in_the_world_since_we_all_know_file_names_are_unique{"fakessi.pl"};
If that, for some reason shouldnt work, I'd suggest using a search engine.
->malte
------------------------------
Date: Tue, 24 Apr 2001 09:40:43 -0500
From: Dan Harding <dharding@uiuc.edu>
Subject: Re: GD/TrueType weirdness (SOLVED)
Message-Id: <3AE5906B.9B41C01D@uiuc.edu>
And had I done things in the right order, I wouldn't have wasted
everyone's time. Grrr....
The version of GD (1.27.2) that is included in the binary distribution
of ActivePerl 5.6.0.623 for WinNT evidently does *NOT* include
TrueType support, despite what the can_do_TTF() function might
report.
Solution:
C:\> ppm remove gd
C:\> ppm install
http://www.activestate.com/ppmpackages/support/5.6/GD.ppd
This is version 1.32 of GD, built with version 2.0.1 of the freetype
libraries and version 1.8.4 of libgd.
All is well...
-Dan
------------------------------
Date: Tue, 24 Apr 2001 17:32:22 +0100
From: "Bob Smith" <gglackin@nospam.eircom.net>
Subject: help needed with strings
Message-Id: <4VhF6.11232$_W2.11438@news.indigo.ie>
Hi,
I was wondering if any one knows of any code that
would allow me to replace a string like /local/cgi-bin/
with /html/ie/
thanks
Bob
------------------------------
Date: Tue, 24 Apr 2001 16:50:11 -0000
From: gbacon@HiWAAY.net (Greg Bacon)
Subject: Re: help needed with strings
Message-Id: <tebbm3attldl95@corp.supernews.com>
In article <4VhF6.11232$_W2.11438@news.indigo.ie>,
Bob Smith <gglackin@nospam.eircom.net> wrote:
: I was wondering if any one knows of any code that
: would allow me to replace a string like /local/cgi-bin/
: with /html/ie/
What have you tried?
Greg
--
One cardinal rule of marriage should never be forgotten: GIVE LITTLE, GIVE
SELDOM, AND ABOVE ALL, GIVE GRUDGINGLY. Otherwise what could have been a
proper marriage could become an orgy of sexual lust.
-- Ruth Smythers, Spiritual Guidance Press, 1894 (apocryphal)
------------------------------
Date: Tue, 24 Apr 2001 17:40:06 -0000
From: cberry@cinenet.net (Craig Berry)
Subject: Re: help needed with strings
Message-Id: <tebejmt4mfr64e@corp.supernews.com>
Bob Smith (gglackin@nospam.eircom.net) wrote:
: I was wondering if any one knows of any code that
: would allow me to replace a string like /local/cgi-bin/
: with /html/ie/
perldoc perlop (see the section on the substitution operator s///)
perldoc perlre
But a better bet would be to get a good introductory Perl book, like
_Learning Perl_ ("The Llama").
--
| Craig Berry - http://www.cinenet.net/~cberry/
--*-- "When the going gets weird, the weird turn pro."
| - Hunter S. Thompson
------------------------------
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 753
**************************************