"Can someone help me?"
You could fix the problems perl tells you about when you try to run the script?
Variable "$mio" is not imported at x.pl line 18. Variable "$mio" is not imported at x.pl line 22. Variable "@words2" is not imported at x.pl line 31. Global symbol "$mio" requires explicit package name at x.pl line 18. Global symbol "$mio" requires explicit package name at x.pl line 22. Global symbol "$line" requires explicit package name at x.pl line 30. Global symbol "@words2" requires explicit package name at x.pl line 31 +. Global symbol "$line" requires explicit package name at x.pl line 31. Global symbol "$line2" requires explicit package name at x.pl line 34. Global symbol "@words" requires explicit package name at x.pl line 38. Global symbol "$line2" requires explicit package name at x.pl line 38. Global symbol "@words" requires explicit package name at x.pl line 43. Execution of x.pl aborted due to compilation errors.
You've been told this before. Also, use the three argument open, and report on errors (for exmaple ... or die "cannot open < input.txt: $!";).
In reply to Re: While problem
by marto
in thread While problem
by pabla23
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |