>>>>> "B-J" == Bill -OSX- Jones <[EMAIL PROTECTED]> writes:

  >> To do... what?

  B-J> $_ = "Mac OS X";

  B-J> split //;
  B-J> $c = grep {/[osx]/i} @_;

  B-J> print "Found $c things\n";

still not clear. try expressing it in english.

but tr/// is the fastest way to count chars which is what you seem to be
doing.

        $_ = "Mac OS X";

        $c = tr/osxOSX// ;

uri

-- 
Uri Guttman  ------  [EMAIL PROTECTED]  -------- http://www.stemsystems.com
-- Stem is an Open Source Network Development Toolkit and Application Suite -
----- Stem and Perl Development, Systems Architecture, Design and Coding ----
Search or Offer Perl Jobs  ----------------------------  http://jobs.perl.org

Reply via email to