N
nicolas-laurent
New to Programming, I am trying to open a file from a command line
split.pl in.txt and print each word on separate line. Something is
missing but I don<t know what ? Please help
#
while ( $_ = <ARGV> ) {
# splits the line into an array of words
@words = split(/ /, $line);
}
print "@words;
split.pl in.txt and print each word on separate line. Something is
missing but I don<t know what ? Please help
#
while ( $_ = <ARGV> ) {
# splits the line into an array of words
@words = split(/ /, $line);
}
print "@words;