#!/usr/bin/perl use strict; use warnings; my $global = "globale Variable"; test(); sub test{ print $global; }