$foo_path = ('/mnt/foo') if ($^O eq "linux"); $foo_path = ('\\\C:\foo.exe') if (($^O =~ /mswin32|nt/i));