Berkeley CSUA MOTD:Entry 28609
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2025/05/24 [General] UID:1000 Activity:popular
5/24    

2003/6/2-3 [Computer/SW/Languages/Perl] UID:28609 Activity:high
6/1     I'm perl debugging under emacs. Everytime my script tries to open
        "/tmp/foo*" perl complains that it can't find it. But if I run it
        outside of emacs, it works. What gives??
        \_ I suspect that you're trying to access one specific file named
           /tmp/foo*, but perl is interpreting the * some sort of glob.  Email
           me the code where you call open and I'll see if I can figure out
           what's going on -darin.
                \_ open XX, "zcat -f --stdout ${YY} |";
                where YY is "/tmp/foo*" and is meant to be multiple files
                perl correctly interprets it as a glob when executed outside of
                emacs. But under emacs, it complains of file not found.