Re: match not matching

2014-03-01 Thread Paul Johnson
On Fri, Feb 28, 2014 at 11:13:05PM -0600, Bill McCormick wrote: Can somebody help me understand this? Given this loop, and the logged output following ... my $found; for( @$products ) {; $found = $$_ =~ m|$project|; I think you might have meant: $found = $project =~ m|$$_|; $dump

Re: Review My Perl Blog

2014-03-01 Thread George Sperl
Good Idea! Thanks, George On Mar 1, 2014, at 1:39 AM, Ahmad Bilal ahmadbilal200...@gmail.com wrote: Hi everyone, I have started a personal blog related to perl/cgi. Here: http://simpleperlforweb.blogspot.in/ It is something I'm doing with good intention for the perl community. I

Re: match not matching

2014-03-01 Thread Bill McCormick
On 3/1/2014 6:19 AM, Paul Johnson wrote: On Fri, Feb 28, 2014 at 11:13:05PM -0600, Bill McCormick wrote: Can somebody help me understand this? Given this loop, and the logged output following ... my $found; for( @$products ) {; $found = $$_ =~ m|$project|; I think you might have meant:

Re: match not matching

2014-03-01 Thread Dr.Ruud
On 2014-03-01 06:13, Bill McCormick wrote: $found = $$_ =~ m|$project|; Alternative: $found = ( index( $project, $$_ ) = 0 ); or rather use: $found = $project =~ /\b\Q$$_\E\b/; Always add escaping and anchors, or you will match the unmatchable. -- Ruud -- To unsubscribe, e-mail:

Re: match not matching

2014-03-01 Thread Jim Gibson
On Feb 28, 2014, at 9:13 PM, Bill McCormick wpmccorm...@gmail.com wrote: Can somebody help me understand this? Given this loop, and the logged output following ... my $found; for( @$products ) {; $found = $$_ =~ m|$project|; $dump = Data::Dumper-Dump([$_, $project, $$_, $found]);

UTF8 Issue?

2014-03-01 Thread Christopher Stone
Hey Folks, When run as a BBEdit text-filter the script works fine with the ascii line, but it produces goop for the utf8 characters. Obviously I'm doing something wrong and need an assist. Thank you. -- Best Regards, Chris -- #! /usr/bin/env perl use