On Wed, 10 Jun 2015 17:49:44 +0530 rakesh sharma <rakeshsharm...@hotmail.com> wrote:
> I have seen perl syntax like use Carp qw(some list items)so when do > we need to write like this and why is not the items of the module > getting imported As others have said, to import a selected set of functions or to import functions not in the default import. Also: use Carp qw( :all ); Will import everything. Most modules (standard modules and CPAN ones) will have the tag `:all` to import everything. If you don't want to import any: use Carp (); To use a function in Carp, you would use the fully-qualified name: Carp::croak "ribbit"; -- Don't stop where the ink does. Shawn -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/