So there isn't a problem. That has already been solved. But the solution doesn't make sense to me. If someone could please explain how filehandles and subroutines act and interact, I would appreciate it. Here's what happened.
sub one{
open (FOUT, ">sample.txt") || die "Cannot open file...
I have written a script that works from the command line. However, when I run it through cron, it crashes on one of the requires. There are three requires, all written in the same format, but one doesn't work. All three have the same execute permissions and are in the same directory. What...
I am writing a piece of code that right now I just want to read in all the subdirectories and files in this folder and just print them to file. When I print them to file, they are all there, but they are not in ascii alphebetical, they are in some other order that I can't seem to figure out...
I am attempting to write a program the will take several line input and read it into an array.
print "\n\nPlease paste your data now.\n";
@data = <STDIN>;
However, at the command line I must press [CTRL-D] 3 times in order for the data to be read, and then have of the data is lost. I am on a...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.