On Fri, Aug 31, 2001 at 09:55:06AM +0530, Rajanikanth Dandamudi wrote:
>    What is the reason behind not having a builtin function(something
>    similar to join, grep, chomp) in perl to find the current working
>    directory. I am aware of having a perl module Cwd.pm, which has a
>    function cwd(),by which we can find out the current working directory.
>    Is there any specific reason behind not having builtin function.

I don't know what the real reason is, the answer is probably enshrined in
the p5p archives, or possibly Larry Wall's brain.  I can, however, speculate
wildly.

When a function can be implemented without modifying the perl program
itself, i.e. it can be implemented as a module, it is.  This was not always
the case, and I believe this decision has been made mostly so that new
keywords are not introduced into the language.  At this point, this rule
pretty much covers any new functions that need to be introduced into Perl;
most of the changes being done to perl5 include bug fixes and tweaking of
existing syntax, such as adding subroutine attributes.


Michael
--
Administrator                      www.shoebox.net
Programmer, System Administrator   www.gallanttech.com
--

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to