Thanks for your suggestions Jonathan, that seems to stop the script from
looping
now there is another problem with it!!!
it falls over saying "can't open newpage at 74 - No such file or directory
at /web/cgi/AZcreate.pl line 74"
but the idea is that this file will be created when printing to PAGEOUT,
have I got it all wrong?
I Have marked the line in script below, I would be really gratfull for any
suggestions on how to cure this..
TIA
Terry
...
... foreach $NEWPAGE (@pages)
... {
... chomp $NEWPAGE;
... open(PAGEIN, "<$path/ExhibitionFolder/98/Templates/$NEWPAGE")
... or die("Cannot open template: $!\n");
... open(PAGEOUT, ">$folder/$Exname/$NEWPAGE")
... or die("can't open newpage at 74 : $!\n");######## this is line
74
...
... while (<PAGEIN>) {
... s/#Exname#/$pexname/g;
... s/#dates#/$dates/g;
... s/#Venueadd#/$Venueadd/g;
... print PAGEOUT;
... }
...
... close PAGEIN;
... close PAGEOUT;
... }
...
...Regards,
...Jonathan
...
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]