libvideosite: get rid of //=
[videosite.git] / libvideosite.pm
index 4920801..bebc8a5 100644 (file)
@@ -132,9 +132,9 @@ sub _io {
 
     # This will define the outputprefix once, so we don't have
     # do do this every time.
-    $outputprefix //= sprintf("%svideosite: %s",
+    $outputprefix = sprintf("%svideosite: %s",
         $remote_api->{color}->('magenta'),
-        $remote_api->{color}->());
+        $remote_api->{color}->()) unless(defined($outputprefix));
     $format = $outputprefix . shift(@text);
 
     #