And i guess perl thinks it shouldn't work, but i do!
i want it to choose between like ">$file" and ">>$file" which are located within the array that i passed to it.
But it's giving me a comp error, this is the whole function:
sub save
{
$file = ($_[$count + 3]).$dateMod. ".txt";
open(OUT, ($_[$count + 6]);
print OUT ($_[$count];
}
It used to be like 20 lines, but i got annoyed so i'm trying to make it smaller. I'm passing in 3 arrays, that are pushed into one long one. Then just modifying $count to access the different arrays within the list.
So i guess my question is how can i make this work?
Thanks for any advice you may offer
Chris
i want it to choose between like ">$file" and ">>$file" which are located within the array that i passed to it.
But it's giving me a comp error, this is the whole function:
sub save
{
$file = ($_[$count + 3]).$dateMod. ".txt";
open(OUT, ($_[$count + 6]);
print OUT ($_[$count];
}
It used to be like 20 lines, but i got annoyed so i'm trying to make it smaller. I'm passing in 3 arrays, that are pushed into one long one. Then just modifying $count to access the different arrays within the list.
So i guess my question is how can i make this work?
Thanks for any advice you may offer
Chris