>>>>> "sk" == suresh kumar <surr...@gmail.com> writes:

  sk> Pass the parameters in double quotes or simply $a, $b. Like below
  sk> &replace_txt("$a", "$b");

that is wrong. don't quote scalar vars unless you want to force
stringification.

also to the OP, don't use $a and $b except in sorting. they are special
variables and will not trigger errors under strict.

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