- or download this
open my $filehandle, '>>', 'C:\Documents and Settings\m\Desktop\info.t
+xt'
- 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";
}
- or download this
while (<>) {
... # code for each line
}
- or download this
unshift(@ARGV, '-') unless @ARGV;
while ($ARGV = shift) {
...
... # code for each line
}
}