Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w 
    use strict;
    
  2. or download this
    $addthis=join("", <TEXT>);
    
  3. or download this
    open (FILES,"files.txt") || die "Could not open file: $! \n";
    
  4. or download this
    for (<FILES>){
        chomp; # each item of the array is placed in $_ for the scope of t
    +he for
        unless (open (D,$_)){ # no need to wrap the variable in quotes
    ...
        print D $newrecord;
        close (D)
    }
    
  5. or download this
    #!/usr/bin/perl -w
    use strict;
    $someperl=<DATA>;
    __DATA__
    Some data