Grokbase
Topics Posts Groups | in
x
[ help ]

Alberto Simões (a...@alfarrabio.di.uminho.pt)

Profile | Posts (62)

User Information

Display Name:Alberto Simões
Partial Email Address:a...@alfarrabio.di.uminho.pt
Posts:
62 total
62 in Perl 5 Porters

5 Most Recent

All Posts
1) Alberto Simões Re: Too late for -Co
| +1 vote
It worked with 5.8.8 ...
Perl 5 Porters
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Nicholas Clark wrote:
> On Tue, Mar 25, 2008 at 09:33:28PM +0000, Alberto Simes wrote:
>> Hi, Folks.
>>
>> I had some CGI scripts using
>> #!perl -CoO
>>
>> Now, with perl 5.10.0 I can't do that.
>>
>> What is the preferred solution?
>
> IIRC it didn't ever actually work on 5.8.x. (If so) if you take it out, does
> anything change?

It worked with 5.8.8

:)
--
Alberto Simões - Departamento de Informática - Universidade do Minho
Campus de Gualtar - 4710-057 Braga - Portugal
2) Alberto Simões Re: Too late for -Co
| +1 vote
using binmode STDOUT, ":utf8" Thanks > ambs...
Perl 5 Porters
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Alberto Simões wrote:
> Hi, Folks.
>
> I had some CGI scripts using
> #!perl -CoO
>
> Now, with perl 5.10.0 I can't do that.
>
> What is the preferred solution?

using binmode STDOUT, ":utf8"

Thanks

>
> Thank you.
> ambs

--
Alberto Simões - Departamento de Informática - Universidade do Minho
Campus de Gualtar - 4710-057 Braga - Portugal
3) Alberto Simões Too late for -Co
| +1 vote
Hi, Folks. I had some CGI scripts using #!perl -CoO Now, with perl 5.10.0 I can't do that. What is...
Perl 5 Porters
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Hi, Folks.

I had some CGI scripts using
#!perl -CoO

Now, with perl 5.10.0 I can't do that.

What is the preferred solution?

Thank you.
ambs
--
Alberto Simões - Departamento de Informática - Universidade do Minho
Campus de Gualtar - 4710-057 Braga - Portugal
4) Alberto Simões Re: lc(undef) is not undef: bug or feature?
| +1 vote
Use of uninitialized value on... ? Not sure if this was what you asked for. Cheers ambs
Perl 5 Porters
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Marvin Humphrey wrote:
>
> On Jan 24, 2008, at 1:49 PM, Abigail wrote:
>
>> What isn't good is that it doesn't warn.
>
> This is precisely the kind of situation where I'd hope that Perl would
> warn if I had warnings enabled. I count on Perl to catch accidental use
> of uninitialized values for me.
>
> Are there any warnings that you favor, Abigail?

Use of uninitialized value on... ?

Not sure if this was what you asked for.
Cheers
ambs
--
Alberto Simões - Departamento de Informática - Universidade do Minho
Campus de Gualtar - 4710-057 Braga - Portugal
5) Alberto Simões Re: lc(undef) is not undef: bug or feature?
| +1 vote
OK It's true. Well, good point ;)...
Perl 5 Porters
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Abigail wrote:
> On Thu, Jan 24, 2008 at 09:24:08PM +0000, Alberto Sim?es wrote:
>> Well, the subject says it all :)
>>
>> lc(undef) is the empty string.
>
> Of course. What would you expect? It's not different from 1 + undef being
> 1, and not undef. undef is not like NULL in SQL, where operation upon will
> return NULL. In Perl, undef is treated as the empty string if treated
> as a string, and as 0 if treated as a number. lc operates on strings,
> so lc(undef) will be the same as lc("").

OK

>> This might be good, this might be bad.
>
> What isn't good is that it doesn't warn.

It's true.

>> In any case, I think it should be documented.
>
> Where do we stop? Should we document any case where undef is treated
> as "" or 0?

Well, good point ;)

--
Alberto Simões - Departamento de Informática - Universidade do Minho
Campus de Gualtar - 4710-057 Braga - Portugal

spacer
Profile | Posts (62)
Home > People > Alberto Simões