Grokbase
Topics Posts Groups | in
x
[ help ]

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

Profile | Posts (62)Page 3 of 4: << < 1 2 3 4 > >>
41) Alberto Simões Re: CGI: Bug or Feature?
| +1 vote
Interesting is that if I change that print hidden() by a print of the real html code, the value...
Perl 5 Porters
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Interesting is that if I change that print hidden() by a print of the
real html code, the value printed is not the correct either.

So, it seems the browser is confused when rendering the page. CGI posts
al the defined variables back again?

Alberto


Alberto Manuel Brandão Simões wrote:
>
> Suppose you have a CGI, and param("foo") is "bar".
>
> if (param("foo") eq "bar") {
>    print start_form;
> print hidden("foo","ugh"); ## prints "bar" as the value, not "ugh"
>    print end_form;
> }
>
> To correct the behaviour...
>
> if (param("foo") eq "bar") {
>    print start_form;
>    param("foo", "ugh");
> print hidden("foo","ugh"); ## prints "bar" as the value, not "ugh"
>    print end_form;
> }
>
> Alberto

--
Alberto Simões - Departamento de Informática - Universidade do Minho
Campus de Gualtar - 4710-057 Braga - Portugal
42) Alberto Simões CGI: Bug or Feature?
| +1 vote
Suppose you have a CGI, and param("foo") is "bar". if (param("foo") eq "bar") { print start_form;...
Perl 5 Porters
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Suppose you have a CGI, and param("foo") is "bar".

if (param("foo") eq "bar") {
    print start_form;
    print hidden("foo","ugh");   ## prints "bar" as the value, not "ugh"
    print end_form;
}

To correct the behaviour...

if (param("foo") eq "bar") {
    print start_form;
    param("foo", "ugh");
    print hidden("foo","ugh");   ## prints "bar" as the value, not "ugh"
    print end_form;
}

Alberto
--
Alberto Simões - Departamento de Informática - Universidade do Minho
Campus de Gualtar - 4710-057 Braga - Portugal
43) Alberto Simões Some Perl 5.8.7 tests fail on my Tiger
| +1 vote
So, this is OSX, 10.4, and I'm not very used to it yet, so, it might be my fault to have these...
Perl 5 Porters
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
So, this is OSX, 10.4, and I'm not very used to it yet, so, it might be
my fault to have these errors:

...
../lib/locale...............................NOK 115# The following
locales
#
#       C C POSIX POSIX af_ZA af_ZA.ISO8859-1 af_ZA.ISO8859-15
#       ...
#       zh_HK.Big5HKSCS zh_HK.UTF-8 zh_TW zh_TW.Big5 zh_TW.UTF-8
#
# tested okay.
#
# The following locales
#
#       eu_ES eu_ES.ISO8859-1 eu_ES.ISO8859-15 eu_ES.UTF-8
#
# had problems.
#
../lib/locale...............................FAILED tests 99, 105-106,
108-109, 113, 115
         Failed 7/117 tests, 94.02% okay
../lib/Math/BigInt/t/bare_mbf...............ok
...

--
Alberto Simões - Departamento de Informática - Universidade do Minho
Campus de Gualtar - 4710-057 Braga - Portugal
44) Alberto Simões Re: Table of Perl 5 Operators
| +1 vote
He! Nice colection. Now, anybody up to DRAW the table? :) ...
Perl 5 Porters
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
He! Nice colection. Now, anybody up to DRAW the table? :)


Michael G Schwern wrote:
> You've seen Mark Lentczner's Periodic Table of Perl 6 Operators
> http://www.ozonehouse.com/mark/blog/code/PeriodicTable.html
>
> What about one for Perl 5?
>
> Using perlop, opcode.pl and Mark's table I've done step one: drawn up a
> complete list of Perl 5 operators. All 129 of them [1] in no particular
> order.
> http://www.pobox.com/~schwern/tmp/perl5ops
>
> I've followed Mark's lead as to what is and is not an op. The -X filetest
> operators, despite being in perlfunc, are ops. "scalar" is listed to
> match up with Mark's Contextegens. "ref", "exists", "delete", etc...
> are listed to match up with the Textaveries. "sub" is not an op, that's
> syntax... I guess. I've asked Mark what his system was for deciding what
> is an what is not an op but it seems fairly sensible to me.
>
> So... did I miss anything?
>
> The big step is to work out operator precedence. perlop has a 24 level
> precedence table but I suspect that's perhaps the biggest white lie in all
> the Perl docs. Can Perl 5 even be said to have a simple enough idea of
> op precedence to apply a number to each op? If so, how does one go about
> figuring this out?
>
>
> [1] Mark's table shows 180 ops, but its a year out of date. If we remove
> the bitwise operators we get 153 for Perl 6 and 123 for Perl 5 and things
> start to look more sane.
>

--
Alberto Simões - Departamento de Informática - Universidade do Minho
Campus de Gualtar - 4710-057 Braga - Portugal
45) Alberto Simões use Encode
| +1 vote
Hi! I have a module with lot of Encoding problems (just don't know why, and maybe its fault of the...
Perl 5 Porters
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Hi!

I have a module with lot of Encoding problems (just don't know why, and
maybe its fault of the modules I use).

Meanwhile, Encode could simplify my life, but I think it is just
available for 5.8.x. Is this correct?

Thanks.
Alberto
--
Alberto Simões - Departamento de Informática - Universidade do Minho
Campus de Gualtar - 4710-057 Braga - Portugal
46) Alberto Simões Re: [RELEASE] Parrot 0.1.2 "Phoenix" Released!
| +1 vote
Ok, this might be useless, but maybe you like to know: All tests successful, 1 test and 64 subtests...
Perl 5 Porters
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Ok, this might be useless, but maybe you like to know:

All tests successful, 1 test and 64 subtests skipped.
Files=135, Tests=2252, 798 wallclock secs (299.99 cusr + 96.80 csys =
396.79 CPU)

On a PIII 1Ghz/256MB RAM, running Slackware Linux

Cheers,
Alberto



Leopold Toetsch wrote:
> On behalf of the Parrot team I'm proud to announce the release of
> Parrot 0.1.2.
>
> What is Parrot?
>
> Parrot is a virtual machine aimed at running Perl6 and other dynamic
> languages.
>
> Parrot 0.1.2 contains a lot of new stuff:
>
> - New string handling code. Strings now have charset and encoding
> - Parts of a generational garbage collector
> - Better Python support, separated into dynclasses
> - Parrot Grammar Engine
> - Improved test coverage and documentation
> - and a lot more
>
> After some pause you can grab it from
> <http://www.cpan.org/authors/id/L/LT/LTOETSCH/parrot-0.1.2.tar.gz>.
>
> As parrot is still in steady development we recommend that you
> just get the latest and best from CVS by following the directions at
> <http://dev.perl.org/cvs/>.
>
> Turn your web browser towards <http://www.parrotcode.org/> for more
> information about Parrot, get involved, and:
>
> Have fun!
> leo
>

--
Alberto Simões - Departamento de Informática - Universidade do Minho
                     ,,__
            ..  ..   / o._)                   .---.
           /--'/--\  \-'||        .----.    .'     '.
          /        \_/ / |      .'      '..'         '-.
        .'\  \__\  __.'.'     .'          ì-._
          )\ |  )\ |      _.'
         // \\ // \\
        ||_  \\|_  \\_             Perl Monger
mrf '--' '--'' '--' www.perl-hackers.net
47) Alberto Simões Missing release info on perl.org
| +1 vote
Cheers, Alb
Perl 5 Porters
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Cheers,
Alb
--
Alberto Simões - Departamento de Informática - Universidade do Minho

Much as I hate to say it, the Computer Science view of language design
has gotten too inbred in recent years. The Computer Scientists should
pay more attention to the Linguists, who have a much better handle on
how people prefer to communicate.
--Larry Wall
48) Alberto Simões Re: Restarting MakeMaker development
| +1 vote
I would say EU::MM is much better than M::B at the moment. Just my thoughts.. Alb
Perl 5 Porters
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
bronek42@gmail.com wrote:
> On Tue, 23 Nov 2004 09:09:25 +0100, Johan Vromans <jvromans@squirrel.nl> wrote:
>
>>Michael G Schwern <schwern@pobox.com> writes:
>>
>>>On Tue, Nov 23, 2004 at 08:35:18AM +0100, H.Merijn Brand wrote:
>>>
>>>>>I thought MakeMaker was dead.
>>>>
>>>>Who told you? It is not.
>>>
>>>Me, sort of. :)
>>>Its not dead, just doomed.
>>
>>Wouldn't it then be better to concentrate on pushing Module::Builder
>>instead?
>
>
> Not really... EU::MM is very popular and just simply works for most cases.
> Would be nice to have a new release, containing patches which now rot
> in MM's rt.cpan.org queue.

I would say EU::MM is much better than M::B at the moment.
Just my thoughts..

Alb

--
Alberto Simões - Departamento de Informática - Universidade do Minho

Much as I hate to say it, the Computer Science view of language design
has gotten too inbred in recent years. The Computer Scientists should
pay more attention to the Linguists, who have a much better handle on
how people prefer to communicate.
--Larry Wall
49) Alberto Simões Re: OSes that ship perl as core
| +1 vote
Not linux, at least slackware (bash based) and RH (bash and python based) > Nicholas Clark...
Perl 5 Porters
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Nicholas Clark wrote:

> Which operating systems ship perl 5 as core? As far as I know it's
>
> Solaris (5.6.1 currently)
> AIX
> OS X ("5.8.1 RC3")
> Most Linux distributions
>
> Does HP UX? Irix?
>
> How many use perl to write core system tools?

Not linux, at least slackware (bash based) and RH (bash and python based)
>
> Nicholas Clark

--
Alberto Simões

Much as I hate to say it, the Computer Science view of language design
has gotten too inbred in recent years. The Computer Scientists should
pay more attention to the Linguists, who have a much better handle on
how people prefer to communicate.
--Larry Wall
50) Alberto Simões Re: A Different Perldoc
| +1 vote
Also, it would be a nice idea to log the searches, so that searched modules documentation can be...
Perl 5 Porters
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Also, it would be a nice idea to log the searches, so that searched
modules documentation can be built if there is interest from the users.


H.Merijn Brand wrote:
> On Mon 15 Nov 2004 05:32, Michael G Schwern <schwern@pobox.com> wrote:
>
>>FYI.
>>
>>Spotted via Barbie's use.perl journal. Jon Allen's whack at a perldoc web
>>site.  I like the organization of the pages.
>>
>>http://perldoc.perldrunks.org/
>
>
> I like it. It only lacks a (global) search feature
> And an (extended) module section (DBI, Tk, ...)
>

--
Alberto Simões

Much as I hate to say it, the Computer Science view of language design
has gotten too inbred in recent years. The Computer Scientists should
pay more attention to the Linguists, who have a much better handle on
how people prefer to communicate.
--Larry Wall
51) Alberto Simões Re: 5.8.6 RC1 [success on slackware 10]
| +1 vote
All tests successful. u=1.92 s=0.68 cu=147.91 cs=14.59 scripts=848 tests=87641 make[2]: Leaving...
Perl 5 Porters
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
All tests successful.
u=1.92  s=0.68  cu=147.91  cs=14.59  scripts=848  tests=87641
make[2]: Leaving directory `/tmp/perl-5.8.6-RC1'
make[1]: Leaving directory `/tmp/perl-5.8.6-RC1'

User configure, make and make test. Not installing it.
Cheers,
ambs


Nicholas Clark wrote:
> "Hallo!" said Piglet, "whare are /you/ doing?"
>
>       "Hunting," said Pooh.
>
>       "Hunting what?"
>
> "Tracking something," said Winnie-the-Pooh very mysteriously.
>
> "Tracking what?" said Piglet, coming closer.
>
> "That's just what I ask myself, I ask myself, What?"
>
>       "What do you think you'll answer?"
>
> "I shall have to wait until I catch up with it," said Winnie-the-Pooh.
> "Now, look there." He pointed to the ground in front of him. "What do
>       you see there?"
>
> "Track," said Piglet. "Paw-marks." He gave a little squeak of excitement.
> "Oh, Pooh!" Do you think it's a--a--a Woozle?"
>
>     From 'Winnie-the-Pooh" by A.A. Milne
>
>
> Currently it's at
>
> http://www.ccl4.org/~nick/P/perl-5.8.6-RC1.tar.bz2
>
> (or s/bz2$/gz/ if instead you're hunting a wizzle, er, 25% larger download.)
> Please don't publicise that URL outside p5p - instead
>
> ftp://ftp.cpan.org/pub/CPAN/authors/id/N/NW/NWCLARK/perl-5.8.6-RC1.tar.bz2
>
> Once it's propagated round the CPAN mirrors I'll make an announcement
> on use.perl
>
> Nicholas Clark
>
>
>     

--
Alberto Simões

Much as I hate to say it, the Computer Science view of language design
has gotten too inbred in recent years. The Computer Scientists should
pay more attention to the Linguists, who have a much better handle on
how people prefer to communicate.
--Larry Wall
52) Alberto Simões Re: Roadmap for 5.10, was ETA for 5.8.6?
| +1 vote
Yes, to incorporate some kind of cpan+ or cpan with hability to install M::B modules is __VERY__...
Perl 5 Porters
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Yes, to incorporate some kind of cpan+ or cpan with hability to install
M::B modules is __VERY__ important.



Rafael Garcia-Suarez wrote:
> Nicholas Clark wrote:
>
>>On Fri, Nov 05, 2004 at 12:16:12PM +0000, [email protected: h...@crypt.org] wrote:
>>
>>
>>>Also, aim to incorporate CPAN+ and M::B (mentioned by others) and Inline.
>>
>>Currently Inline::C requires Parse::RecDescent. Were you thinking of pulling
>>that in too, or switching wholly to the new alternative regexp based parser?
>
>
> I think this is not about incorporating Inline::C, but a minimal subset of Inline.

--
Alberto Simões

Much as I hate to say it, the Computer Science view of language design
has gotten too inbred in recent years. The Computer Scientists should
pay more attention to the Linguists, who have a much better handle on
how people prefer to communicate.
--Larry Wall
53) Alberto Simões cpan command/Module and Build.PL
| +1 vote
Dear Perl 5 Porters and brian, Today my cpan does not install a module using Module::Builder....
Perl 5 Porters
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
  Dear Perl 5 Porters and brian,

Today my cpan does not install a module using Module::Builder.
--->

Package seems to come without Makefile.PL.
   (The test -f "/root/.cpan/build/Lingua-PT-Abbrev-0.02/Makefile.PL" 
returned fa lse.)
   Writing one on our own (setting NAME to LinguaPTAbbrev)

--->

I think I did already install modules based on Built.PL before. Now, I
can't notice what is the problem. I have the latest Bundle::CPAN.
What am I doing wrong (or cpan is doing wrong?))

THanks.

Alberto



--
Alberto Simões

Much as I hate to say it, the Computer Science view of language design
has gotten too inbred in recent years. The Computer Scientists should
pay more attention to the Linguists, who have a much better handle on
how people prefer to communicate.
--Larry Wall
54) Alberto Simões DB_File... help needed
| +1 vote
Hi all I remember some time ago we found a "bug" on using utf-8 on DB_File. Now, I am using DB_File...
Perl 5 Porters
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Hi all

I remember some time ago we found a "bug" on using utf-8 on DB_File.
Now, I am using DB_File again with utf-8 and I need some help.

I'm using DB_File to store utf-8 data. I can try to encode to iso-8859-1
but I would lost a set of characters :-(

At the moment, when accessing that data I get the bytes, and not the
utf-8 string.

Thanks for any help
Cheers.
--
Alberto Simões

Much as I hate to say it, the Computer Science view of language design
has gotten too inbred in recent years. The Computer Scientists should
pay more attention to the Linguists, who have a much better handle on
how people prefer to communicate.
--Larry Wall
55) Alberto Simões Re: 5.8.5 RC1