in reply to Re: Re: File permission converter
in thread File permission converter

Actually just did the comparison ... and you are way off. Next time you want to accuse someone of plagiarizing ... I suggest you do the comparison FIRST.
Next time you want to accuse me of accusing someone of plagerizing, please check with me first.

My agenda was simply "did this wheel need to get reinvented?", so I was wondering if there was new art in the head of this thread, or whether it was just an attempt to reinvent something already done.

If there's a difference in implementation, which one is more robust or more elegant? If the one at the head of this thread, then that should be sent in as a patch to find2perl. If find2perl's is better, then the code at the head of this thread should be relegated to the "not terribly useful reimplementation of existing wheel" category.

Reuse dammit. It's never about plagerism. Sheesh. Where are you from?

-- Randal L. Schwartz, Perl hacker

Replies are listed 'Best First'.
Re: Re: Re: Re: File permission converter
by Centaurus (Novice) on Feb 15, 2001 at 06:06 UTC
    The above snippet by chipmunk would have been the preferred way of writing the code. I do believe in reuse ... but you have to know the code is available before you can reuse it. I would think most people would agree that your statement does sound like you are accusing me of plagiarizing. Please word your posts more carefully in the future. Apologies for accusing you of accusing 8) .. but you have to agree it did sound that way.
      Hmm. I spoke far too soon. find2perl's code is about going from the permission to the symbolic meaning. The code at the head of this thread is to go the other way, albeit for the wrong reason (from what I can gather).

      So, the code is neither the best way to do something, nor something that is parallel to what find2perl does.

      -- Randal L. Schwartz, Perl hacker

        While working on the parser that uses that permissions converter.. I was reminded of the reason I used the above method to parse the permissions. The file I am trying to obtain permissions for resides on a remote server which does not have Perl. I use Expect to SSH into the remote system and retrieve the output from a long listing on the file. Since the file does not reside on the local system I cannot use stat() on the file.