my $backupoutput = 1; ... my $backupoutput = 2; # you will get the warning here print $backupoutput;