Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    syntax error at G:\x.pl line 5, near "my "
    Global symbol "@words2" requires explicit package name at G:\x.pl line
    + 5.
    Execution of G:\x.pl aborted due to compilation errors.
    
  2. or download this
    use strict;
    use warnings;
    ...
    <my @words1 = <INPUT1>;
    >
    <print "<$_>\n" for @words1;>
    
  3. or download this
    my @words1 = map {chomp; $_} <INPUT1>;
    my @words2 = map {chomp; $_} <INPUT2>;