Re: When is qw used

2015-06-10 Thread Shawn H Corey
On Wed, 10 Jun 2015 17:49:44 +0530 rakesh sharma 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 n

Re: When is qw used

2015-06-10 Thread Shlomi Fish
Shlomi Fish > > Date: Wed, 10 Jun 2015 14:30:28 +0200 > > From: bars0.bars0.ba...@gmail.com > > To: rakeshsharm...@hotmail.com; beginners@perl.org > > Subject: Re: When is qw used > > > > Hi, > > > > As far as I know qw(some list item) will import from

Re: When is qw used

2015-06-10 Thread bars0
ail.com > To: rakeshsharm...@hotmail.com; beginners@perl.org > Subject: Re: When is qw used > > Hi, > > As far as I know qw(some list item) will import from Carp module only > subs that you've explicitly requested. In this example `some, list, > item` will

Re: When is qw used

2015-06-10 Thread Carl Inglis
rs0.bars0.ba...@gmail.com > > To: rakeshsharm...@hotmail.com; beginners@perl.org > > Subject: Re: When is qw used > > > > Hi, > > > > As far as I know qw(some list item) will import from Carp module only > > subs that you've explicitly requested. In this exam

RE: When is qw used

2015-06-10 Thread rakesh sharma
.@gmail.com > To: rakeshsharm...@hotmail.com; beginners@perl.org > Subject: Re: When is qw used > > Hi, > > As far as I know qw(some list item) will import from Carp module only > subs that you've explicitly requested. In this example `some, list, > item` will be availa

Re: When is qw used

2015-06-10 Thread bars0
Hi, As far as I know qw(some list item) will import from Carp module only subs that you've explicitly requested. In this example `some, list, item` will be available in your namespace but not other from Carp module. `use Carp;` will import all of them. Krzysztof On 2015-06-10 14:19, rakesh

When is qw used

2015-06-10 Thread rakesh sharma
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 thanksrakesh