$script = 'foo.pl'; # or $script = ; chomp $script; $path = '/some/path/'; $script = $path . $script; #### $script = '/some/path'; $script .= 'foo.pl'; # or $script .= ; chomp $script;