On Wed, May 03, 2006 at 04:41:19PM -0500, Charles K. Clarkson wrote: > Smith, Derek wrote: > > : Excellent... thank you. Before sending the email question, I > : was trying to use split to get rid of that and could not get > : it to work as I was using > : <code> > : > : For (<FH>) > : If (/pattern/) { > : split /\=/ ,$_ /; > : $vg{$_}++ > : } > : } > : </code> > : > : Why didn't this work? > > Because it is wrong on so many levels. Seriously, assuming > the capitalization of "for" and "if" are typos, you can't just > add a slash "/" wherever you want to and expect perl to know > why. Assuming that trailing slash is also a typo, And you > really meant this ...
Apologies, Charles, I accidentally sent that off-list. So, resend: Maybe the capitalization of "for" and "if" wasn't a typo -- it might have been the result of writing code in MS Word with auto-capitalization turned on. -- Chad Perrin [ CCD CopyWrite | http://ccd.apotheon.org ] print substr("Just another Perl hacker", 0, -2); -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>