Beefy Boxes and Bandwidth Generously Provided by pair Networks BBQ
The stupid question is the question not asked
 
PerlMonks  

Re: Really dumb question...

by jorg (Friar)
on May 19, 2001 at 21:38 UTC ( [id://81767]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Really dumb question... ('ne' not working)

Try to put use strict; at the top of your script and always run it with the -w commandline switch. This often gives you a better idea of what *could be going wrong.
I ran you script like this and it didn't produce the error
use strict; use vars qw($tmp_dir $dir); open OUTPUTFILE, ">test.txt"; $tmp_dir = "test"; $dir = "tester"; if ($tmp_dir ne $dir) { print "dumping to file\n"; print OUTPUTFILE "\n$tmp_dir\n"; $dir = $tmp_dir; }
Maybe there is something wrong in your assignment of $tmp_dir and $dir...

Jorg

"Do or do not, there is no try" -- Yoda

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://81767]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.