Message-Id: <
200204081412.g38ECqkX049116@vran.herceg.de>
p4raw-id: //depot/perl@15804
sub open {
my $path = shift ;
- if (warnings::enabled() && $path !~ m#^/#) {
- warnings::warn("changing relative path to /tmp/");
+ if ($path !~ m#^/#) {
+ warnings::warn("changing relative path to /tmp/")
+ if warnings::enabled();
$path = "/tmp/$path" ;
}
}