List Info

Thread: Re: subs, eval, and BEGIN




Re: subs, eval, and BEGIN
country flaguser name
United States
2007-03-19 02:38:03
How come u were trying to put it in a begin block?

At 06:28 PM 3/18/2007 -0700, Glenn Linderman wrote:
>So I'm trying to make a sub to tr iso-8859-1 to
unaccented ASCII 
>equivalents.  Maybe one already exists, somewhere, but
now that I've 
>gotten this far, I'm confused:
>
>#!perl
>BEGIN {




--
REMEMBER THE WORLD TRADE CENTER         ---=< WTC 911
>=--
"...ne cede malis"

00000100

_______________________________________________
Perl-Win32-Users mailing list
Perl-Win32-Userslistserv.ActiveState.com
To unsubscribe: http:/
/listserv.ActiveState.com/mailman/mysubs

Re: subs, eval, and BEGIN
country flaguser name
United States
2007-03-19 03:13:55
On approximately 3/19/2007 12:38 AM, came the following
characters from 
the keyboard of Chris Wagner:
> How come u were trying to put it in a begin block?
>
> At 06:28 PM 3/18/2007 -0700, Glenn Linderman wrote:
>   
>> So I'm trying to make a sub to tr iso-8859-1 to
unaccented ASCII 
>> equivalents.  Maybe one already exists, somewhere,
but now that I've 
>> gotten this far, I'm confused:
>>
>> #!perl
>> BEGIN {
>>     

Why not?  tr said it compiled the strings at compile time,
compile time 
sounded like a begin block, but of course eval is also
compile time.  It 
was evolutionary, without quite enough thought at all points
in time.  
That wasn't the only bug....

-- 
Glenn -- http://nevcal.com/
===========================
A protocol is complete when there is nothing left to
remove.
-- Stuart Cheshire, Apple Computer, regarding Zero
Configuration Networking

_______________________________________________
Perl-Win32-Users mailing list
Perl-Win32-Userslistserv.ActiveState.com
To unsubscribe: http:/
/listserv.ActiveState.com/mailman/mysubs

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )