View Single Post
  #1 (permalink)  
Old July 23rd, 2013, 06:03 PM
zubr zubr is offline
Registered User
Points: 5, Level: 1
Points: 5, Level: 1 Points: 5, Level: 1 Points: 5, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jul 2013
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default cant go further.

Hi guys.
im a newbie. im sorry to waste your time. but i still hope to get help. im studying. can you explain to my why doesnt it work?

#!/usr/bin/perl
#openfile
open (FILEHANDLE, data.txt) or
die "it doesnt work again: $!";

while (<FILEHANDLE>) {
chomp:
print "$_\n";
}

close FILEHANDLE;
Reply With Quote