I want to be able to write something like:$foo_path = ('/mnt/foo') if ($^O eq "linux"); $foo_path = ('\\\C:\foo.exe') if (($^O =~ /mswin32|nt/i));
... but using undef in this way doesn't work. I've googledif undef ($foo_path) { print "\nFOO was not intended to run on OS:$^0\n" exit; }
In reply to Using UNDEF by neo1491
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |