Well, i really prefer the OO version:

use Module::Foo; my $foo = Module::Foo->new(); $foo->do_something();
but to answer your question, i too prefer the latter. Take CGI.pm for example -- i enjoy using that module the most when i use its function-oriented interface:
print header, start_html( -title => 'Decimal to Hex Converter', -bgcolor => 'black', -text => 'white', ), h1({align=>'center'},'Decimal to Hex Converter'), ;
But it can be easy to mix up your subroutines with the subroutines from the module(s) you are importing, and programs can really benefit from the OO approach in ways other than preventing name collision:
my $cgi = CGI->new; my $tmpl = HTML::Template->new( filehandle => \*DATA, associate => $cgi, ); print $cgi->header, $tmpl->output; __DATA__ <html> yadda ...
In that example, "magic" happens when you instantiate the CGI object and pass the reference to the HTML::Template constructor. You get forms that remember their values when the user submits invalid form information.

jeffa

L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
B--B--B--B--B--B--B--B--
H---H---H---H---H---H---
(the triplet paradiddle with high-hat)

In reply to Re: prefered syntax for using imported subs by jeffa
in thread prefered syntax for using imported subs by duckyd

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.