sub ReadHugeFileSpareResources
{
open(MYINPUTFILE, "<filename.out");
while(<MYINPUTFILE>)
{
# Good practice to store $_ value because
# subsequent operations may change it.
my ($line) = $_;
# Good practice to always strip the trailing
# newline from the line.
chomp ($line);
# Action !!! Convert the line to upper case.
$line =~ tr/[a-z]/[A-Z]/;
# Print the line to the screen and add a newline
print "$line\n";
} #eof sub ReadHugeFileSpareResources
No comments:
Post a Comment
- the first minus - Comments have to be moderated because of the spammers
- the second minus - I am very lazy at moderating comments ... hardly find time ...
- the third minus - Short links are no good for security ...
- The REAL PLUS : Any critic and positive feedback is better than none, so your comments will be published sooner or later !!!!