stdout and error to one file

2002-05-20 Thread Christian . Niebuhr
Hi, I try to write a script that redirects its output, both out and error, to a log-file, if it's possible to the screen as well. At the moment I'm doing this with open (FILE, ">whatever.txt"); open (STDOUT, ">&FILE"); open (SDTERR, ">&FILE"); But now of course I don't have the output on th

determine the invoking function

2002-05-16 Thread Christian . Niebuhr
Hello, is it possible to determine within a function from which module/function this one was called? for instance: sub test1 { test2(); } sub test2 { you were called from function test1. } thanks in advance, Christian -- To unsubscribe, e-mail: [EMAIL PROTECTED] For

find and arguments

2002-04-20 Thread Christian . Niebuhr
Hi guys, a hopefully not tooo stupid question: With the find ( { wanted => \&process_file, follow=> 0}, $Dir); function my program runs through a directory-tree and the process_file-function works with the found files. In my case I want to cut a part from the path of the file (not al