# This initializes $main::foo function_one(); # This uses the value of $main::foo and updates it function_two(); # This relies on the modified value from function_two function_three(); #### my $value= function_one(); function_two(\$value); function_three($value);