well, according to the benchmark:
#!/usr/bin/perl -w use strict; use Benchmark; my $x = "a b c d e f g"; sub list_context { my $y = (split(/\s+/, $x))[0]; } sub extra_argument { my $y = (split(/\s+/, $x, 2))[0]; } timethese(-3, { "LIST CONTEXT" => \&list_context, "EXTRA ARGUMENT" => \&extra_argument, }); [ed@darkness ed]$ perl ./splittest.pl Benchmark: running EXTRA ARGUMENT, LIST CONTEXT, each for at least 3 C +PU seconds... EXTRA ARGUMENT: 2 wallclock secs ( 3.14 usr + 0.00 sys = 3.14 CPU) +@ 115563.69/s (n=362870) LIST CONTEXT: 3 wallclock secs ( 3.18 usr + 0.00 sys = 3.18 CPU) @ +57053.46/s (n=181430)
the extra argument version of split kicks the living crap out of not using it... so i guess, yes ;) it does make a difference!

In reply to RE: Re: is split optimized? by eduardo
in thread is split optimized? by Anonymous Monk

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.