#!/usr/bin/perl use strict; use warnings; my $string = 'hallo'; if($string ne 'check'){ print $string; }