>>>>> "Stanislaw" == Stanislaw Pusep <[email protected]> writes:

    Stanislaw> Uma coisa muito, muito util é função anônima.
    Stanislaw> Por exemplo, o equivalente do comando de shell "find . -type f":

    Stanislaw> perl -MFile::Find -E 'find sub { say $File::Find::name if -f } 
=> qw(.)'

E closures são mais úteis ainda.

-- 
   Eden Cardim       Need help with your Catalyst or DBIx::Class project?
  Code Monkey                    http://www.shadowcat.co.uk/catalyst/
 Shadowcat Systems Ltd.  Want a managed development or deployment platform?
http://blog.edencardim.com/            http://www.shadowcat.co.uk/servers/
http://twitter.com/#!/edenc
=begin disclaimer
   Sao Paulo Perl Mongers: http://sao-paulo.pm.org/
 SaoPaulo-pm mailing list: [email protected]
 L<http://mail.pm.org/mailman/listinfo/saopaulo-pm>
=end disclaimer

Responder a