>>>>> "MA" == Mishustin Alexey <shum...@shumkar.ru> writes:

  MA> В Пнд, 07/09/2009 в 23:01 +0400, Mishustin Alexey пишет:
  >> I give up!
  >> 
  >> What's the mystery?

  MA> Aaaa,

  MA> ($raised_num) = 'Tab_22' =~ /^Tab_(.*)$/;
  MA> print $raised_num."\n";

  MA> ($raised_num) = 'Tab_23' =~ /^Tab_([0-9]+)$/;
  MA> print $raised_num."\n";

  MA> ($raised_num) = 'Tab_24' =~ /^Tab_([0-9][0-9])$/;
  MA> print $raised_num."\n";

  MA> !!

see? wasn't it more fun and educational to discover the answer without
being given it directly? :)

uri

-- 
Uri Guttman  ------  u...@stemsystems.com  --------  http://www.sysarch.com --
-----  Perl Code Review , Architecture, Development, Training, Support ------
---------  Gourmet Hot Cocoa Mix  ----  http://bestfriendscocoa.com ---------

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to