> Thanks. I got lots to learn about perl, thinking > for the 2 hours I was trying to solve my issue > with chomp and split. I have began disecting your > reponse to learn from it. One question, the last > print statement: > > print $_ . "\n";
since ($Jonathan eq "Fool") { Opps... I've abondoned my common sense and Perl knowledge to give you something erroneous. This thinking about being safe applies to regex's but not print. } > what is the significance of the . ? when I > remove it nothing is displayed On the shebang, make sure you have: #!perl -w as otherwise you won't get your warnings. The . means concatonate, that is, join strings together. If you had: my $Boy = "Jack"; my $Girl = "Gill"; my $sentence = $boy . " and " . $Girl . " went up " . "the hill to fetch a pail of water\n"; print $sentence; Of course in this instance you can place that in double quotes, but occasionally this way is more appropriate. Since we are talking about . , you might also be interested in join: my $sentence = join " ", $Boy, 'and', $Girl, 'went up', "the hill to fetch a pail of water\n" which just takes an array, and joins it together using the first string - which I gave as a single space. Take care, Jonathan Paton __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]