Help for this page

Select Code to Download


  1. or download this
    # old STDIN: 1 2 3
    while (<STDIN>) {
       if (some condition) unshift "hi test test" to STDIN
       # new STDIN hi test test 1 2 3 
    }
    
  2. or download this
    while (<STDIN>) {
        if (some condition) $_ = "hi test test " . $_;
        # ...
    }
    
  3. or download this
    # supposing that @ARGV contains file name(s) to be filtered and proces
    +sed:
    
    ...
        # prefixes and other source code filtering are already done
        # ...
    }