Rob Dixon wrote:
> Gunnar Hjalmarsson wrote:
> > Rob Dixon wrote:
> >> Gunnar Hjalmarsson wrote:
> >>> swaroop wrote:
> >>>>
> >>>> As we know there are 3 ways a system shell command to be executed.
> >>>>
> >>>> 1.> $var = system("command");
> >>>> 2.> $var = exec("command");
> >>>> 3.> $var = `command`;
> >>>>
> >>>> What is difference between these three?
> >>>
> >>> You should not have asked that question here; you should have looked up 
> >>> the answer in the docs.
> >>
> >>   I think you should talk to the other abusive people who like to post 
> >> here and
> >>   form a separate group.
> > 
> > I take it that you don't agree.
> > 
> > The OP wondered about two built-in functions and the backticks operator. 
> > I can't think of a more natural first step to find out how they work 
> > than reading about them in the Perl documentation. Do you mean that I'm 
> > abusive by suggesting that people make it a habit to use the docs at 
> > first hand? If that's what you mean, I think you are plain stupid.
> 
> It has become popular in the last year or so to criticize people who ask
> questions on this list essentially for not already knowing the answer. If you
> have lost track of what sort of information a Perl beginner may not know then
> you should not be trying to help them. It is entirely possible that the OP had
> no knowledge of the built in documentation, or even that he had already read 
> it,
> failed to understand it and was looking for a summary from people who were 
> more
> familiar with the language. The pompous RTFM reply is precisely what Casey was
> trying to put a stop to when he initiated this list.

Spoonfeeding someone is not the best way to help him/her. He/she will 
only become dependent. 

If swaroop did not know where to find the docs, he/she should have 
asked where to find the docs.

If he/she could not understand the difference from the docs, he/she 
should have said he can't understand the docs and if possible say 
what does he find hard to understand.

There's nothing pompous about pointing someone at the source of the 
information he needs. It could, and probably should, be done better, 
telling swaroop to read the docs he obtains by running
  perldoc -f system
and
  perldoc -f exec
and
  perldoc perlop

And telling him that if he uses Windows and installed ActivePerl then 
in all likelyhood he has a shortcut to the complete Perl 
documentation in his start menu.

Jenda
===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz =====
When it comes to wine, women and song, wizards are allowed 
to get drunk and croon as much as they like.
        -- Terry Pratchett in Sourcery


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to