Help for this page

Select Code to Download


  1. or download this
    for('a','anyone','cancel','declare','perlmonks'){$i=()=/e/g;print"$_: 
    +$i\n"if(/a/);}
    
  2. or download this
    /a/&&print"$_: ".y/e//.$/for'a','anyone','cancel','declare','perlmonks
    +'
    
  3. or download this
    a: 0
    anyone: 1
    cancel: 1
    declare: 2
    
  4. or download this
    a
    anyone
    cancel
    declare
    perlmonks
    
  5. or download this
    perl -lne"/a/&&print$_.': '.y/e//" t1.txt
    
  6. or download this
    perl -lnE"/a/&&say$_.': '.y/e//" t1.txt