Help for this page

Select Code to Download


  1. or download this
       $str = 'ABC';
       pos($str) = 1;
       while (/.\G/g) {
         print $&;
       }
    
  2. or download this
       use warnings;
       $str = 'ABC';
    ...
       while ($str=~/.\G/g) {
         print $&;
       }
    
  3. or download this
       print pos($str);  #line6
       while ($str=~/.\G/g) {
         print $&;
       }
    
  4. or download this
       
    use warnings;
    $str = 'ABC';
    ...
    while ($str=~/.\G/g) {
         print $&;
    }
    
  5. or download this
    Use of uninitialized value in print at /home/lanx/B/PL/PM/re_escG.pl l
    +ine 2.
    Use of uninitialized value $& in print at /home/lanx/B/PL/PM/re_escG.p
    +l line 5.