in reply to Re: printing to filehandles
in thread printing to filehandles

Thanks for your quick reply! I went back through the code and attempted to redo the indentions - hope that hepled. I added the "die's" to the end of the print commands, but nothing died...it seems to think that it's actually printing. (No warnings either.) Also, I have some prints to STDOUT during the print chunk of the code that happens when the if() block is executed that happen just fine. Could this have something to do with factors other than the code itself such as file permissions or something? I'm running Mac OSX (Darwin). I learned perl/UNIX on a pre-configured HPUX workstation at work this summer, and I have not done any configuration to this machine except add an alias to my .bashrc file and load some perl modules. Thanks again! David

Replies are listed 'Best First'.
Re^3: printing to filehandles
by rvosa (Curate) on Sep 02, 2005 at 09:53 UTC
    It's quite possible that this is related to something outside of perl, hence the suggestion to check the $! error string:
    open(FH, '>', $outfile) or die "can't open $outfile: $!";
    This should tell you more about what's going on.
      Also, I'm getting:
      syntax error at forex.pl line 37, near ")}" Unmatched right curly bracket at forex.pl line 62, at end of line syntax error at forex.pl line 62, near "}" Execution of forex.pl aborted due to compilation errors.
      with your code.