Help for this page

Select Code to Download


  1. or download this
    # Standard setup stuff and file handle opening goes here
    while (<THE_FILE_HANDLE>) {
        s#pattern#replacement#;
    }
    
  2. or download this
    #!/usr/bin/perl
    use strict;
    ...
       s/foo/bar/g;
       print $OUFH $_;
    }