Thanks again Ron.
The program does take $dir$fileName as it's last arguement, just the way it is written. Yes the problem is with the disk space I was allocated so problem solved, thank you it is working now....
User Profile
Collapse
-
Sorry I misinterpreted the question. I thought you were asking if the die statements were working, they stop the program if there is an error in creating the file or opening the file, but there is not so they are created I see this happening. This code has already been used and it does write to files. I have ran this already and it has worked over 1000 times, but has now decided to stop. I will start using the 3 arg form that you have mentioned...Leave a comment:
-
Thank for your reply Ron
The $program works fine, well it has worked and printed to file with the arguments that are currently being passed to it, so I know that works.
The @Array isn't empty because the $filePath is generated from this, and I see the output on the terminal window, I see the $program processing the information in the terminal window also. the $value also does not print in the file and again has a value, not even...Leave a comment:
-
Why has my program has stop writting to files.
I wrote a program which writes informations to files and it was working fine, it created and wrote to over 1000 files, but now it will only write to files occasionaly. I don't know if it is an error with the program or the computer. I have looked at 'hot' filehandles I don't really understand how to add them to my code, but I don't think that is the answer. Please can someone advise me?
...Code:$cmd = system "perl $Program $filePath
-
Thank You again Jeff.
Going over this for ages with a stupid mistake missing out something.
Sorry I did not put up any code I am doing work for someone and not sure if I am able to post it.
But thanks again for your help....Leave a comment:
-
Thank you
I have decided to use the permutations and skip any repeats, I think I have it figured out.
Setting up an extra array to identify the spaces to use but still generating the combinations using all the files.
However I have another questions.
Could you give me any advice on how to run a script and pass arguments to that script from within another?
I have looked at require and $ARGV but I need the...Leave a comment:
-
Thanks for replying.
This is my first time using Perl, I haven't implemented it yet I am working on the algorithm, I am jotting ideas down on paper, then going through and calculating them in my head and realising that it is not correct. I have now been looking at the math behind Permutations and Combinations. but then I don't want to generate 1,2,3 and 2,1,3 ... Can you reccomend anything for me to read to understand how to do this. I...Leave a comment:
-
Combinations using perl
Hello All,
I'm sure your all sick of these questions.
My problem is I want to combine files in all different ways without repeats.
So say I have five files, file1, file2, file3, file4, file5. these are stored in an array.
I then want to combine like so (file1, file2), (file1, file3) and so on
then (file1, file2, file3) (file1, file2, file4) ... but then I will need to do (file1, file3,...
No activity results to display
Show More
Leave a comment: