Help for this page

Select Code to Download


  1. or download this
    open my $filehandle, '>>', 'C:\Documents and Settings\m\Desktop\info.t
    +xt'
    
  2. or download this
    foreach my $key (qw/name Specialization age/){
        print "enter your $key\n";
    ...
        chomp $info{$key}; # get rid of the EOL
        print $filehandle "$key: $info{$key}\n";
    }
    
  3. or download this
        while (<>) {
            ...                     # code for each line
        }
    
  4. or download this
        unshift(@ARGV, '-') unless @ARGV;
        while ($ARGV = shift) {
    ...
                ...         # code for each line
            }
        }