my $url = "http://something.com/api_stuff/$GUID"; # do stuff make_call( '1234' ); sub make_call { my $GUID = shift; POST->$url; }