# common, clean, readable, OO-ish way $foo->bar ( 'bash' ); # less common, probably less readable, way Foo::bar ( $foo, 'bash' );