Re: [Lisbon.pm] Is this a feature or a bug?

2010-04-30 Thread Paulo
I think it's a bug in "any" ... Try this: my $_ = 5; say( (any { $_ eq 7 } (0..10) ) or 'false' ); given (5) { when (5) { say( (any { our $_ eq 7 } (0..10) ) or 'false' ); say( join(", ", map { $_ eq 7 } (0..10) ) ); } } and it prints: false 1 , , , , , , , 1, , , B

i am a begnner

2003-12-01 Thread paulo
where can I find a how to abou perl? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Changing case of UTF-8 strings

2008-04-14 Thread Paulo Antonio
Hi all, I'm trying to change case of UTF-8 strings. I've read a bunch of documentation, but can't figure out how to do it right. Here is an example: === My code: use strict; use utf8; my $line; my $letter; while ($line = ) { chomp($line); utf8::upgrade($line); $line = lc($line);

Re: Changing case of UTF-8 strings

2008-04-15 Thread Paulo Antonio
On 14 abr, 13:25, [EMAIL PROTECTED] (Chas. Owens) wrote: [...] > Hmm, the following works for me, but then again I have > > export PERL_UNICODE=SDL #Make Perl use UTF-8 for IO > > in my .bash_profile. > Yes, that made the trick. Thanks. But I wish there was a "Perl only" way... -- To unsubs

Saving in RTF

2002-06-27 Thread João Paulo
This is hard I think I need to save a text in rtf format into a database (mssql)... the problem is what kind of field to use and how to read back the text without loosing the format...(bold,color,etc,,,). Does anyone know how to do that? Any idea? JP. _