On Jan 29, 2008 7:20 PM, brian d foy <brian.d.foy@gmail.com> wrote:
> #!/usr/local/bin/perl5.10.0
I responded to your use.perl post but here's it for p5p too. You are
experiencing a bug. I doubt the implementation is what anyone
intended. Here's what's actually happening:
given( 'Barney' ) { when( @n and %n ) }
=> ( scalar( @n ) and scalar( %n ) ) ~~ 'Barney'
=> ( 3 and '2/8' ) ~~ 'Barney'
=> '2/8' ~~ 'Barney'
=> '2/8' eq 'Barney'
=> false
Josh
Thread Previous
|
Thread Next