>>>>> "SHC" == Shawn H Corey <shawnhco...@gmail.com> writes:

  SHC> Mishustin Alexey wrote:
  >> Aaaa,
  >> 
  >> ($raised_num) = 'Tab_22' =~ /^Tab_(.*)$/;
  >> print $raised_num."\n";

  SHC> Not quite right.  Try:
  SHC> ( $raised_num = 'Tab_22' ) =~ /^Tab_(.*)$/;

that does nither more than assign 'Tab_22' to the var and then grab the
number into $1. he wants the grabbed number in the variable.

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