in reply to How to list all the things in a directory?

Will this code work on every operating system? glob "* .*"
Should be. * catches all names not starting with a dot, and .* does the rest.

I don't want to solve this perl question for operating systems that do not have perl.
Certainly a reasonable assumption in the context of this forum ;-)

Just out of curiosity: Is there anyone who has worked during the past, say, 10 years with an operating system where Perl was not available?

-- 
Ronald Fischer <ynnor@mm.st>

Replies are listed 'Best First'.
Re^2: How to list all the things in a directory?
by BrowserUk (Patriarch) on Apr 28, 2010 at 12:38 UTC

    How about Chrome OS, Palm OS, Symbian, whatever those i* devices run etc.

      Symbian has Perl (5.8.3, thanks to Jarkko), as does Windows CE. Android is supposed to have "a" Perl too (android-scripting, perldroid, Perl Wiki for Android), and as the iPhone is just a rebranded *BSD/OSX-for-ARM, it should be possible to compile Perl for it too.

      Updated: Added links for Android

OSses without Perl (was: How to list all the things in a directory?)
by JavaFan (Canon) on Apr 28, 2010 at 12:26 UTC
    Is there anyone who has worked during the past, say, 10 years with an operating system where Perl was not available?
    I have. Several years ago (but less than 10 ;-)), I worked at a company had developed its own OS in the early 70s, and is still using it today. Noone has ever ported Perl to it. I've also worked with Linux systems where the resources were constraint in such a way (16M disk, 4M RAM, 1.6M OS-image) that fitting in Perl wasn't possible.
Re^2: How to list all the things in a directory?
by DrHyde (Prior) on Apr 29, 2010 at 09:52 UTC

    Sure.

    * Palm OS - there's no perl port, and I find it highly unlikely that perl could ever be ported to it given the, umm, "eccentric" memory model and lack of things like filehandles, processes etc;

    * iPhone OS - there's no perl on the machine, Apple won't ever let it in the App Store, and even if you jailbreak, you'd still have to build (and possibly port) it yourself cos it's not in any of the Cydia repositories;

    * CP/M - OK, so I'm eccentric (and so was my customer), but I've done paid work on CP/M in the last ten years.

      CP/M - OK, so I'm eccentric (and so was my customer), but I've done paid work on CP/M in the last ten years.
      Incredible!!!! I had not expected that hardware from this time would still work! I have done my last CP/M(-86) development in the around 1990 and even then it was obsolete already.

      Thanks for the information!

      -- 
      Ronald Fischer <ynnor@mm.st>
        CP/M ... I had not expected that hardware from this time would still work!

        At work, there is still an ancient CP/M system running in a production environment, controlling a very special measurement device. The people working with it are quite happy with the system. The CP/M machine may be a little bit slow, but the measurement device is so much slower that it does not matter at all.

        The real advantage of that CP/M system is that it is build from components that do not need sophisticated cooling equipment. It doesn't even need a fan. And because the mesurement device once was worth its weight in gold (more or less ;-) ), the price for the computer was nearly irrelevant. So it was built from durable, high quality components, oversized and better than initially needed, lasting for a few decades.

        Alexander

        --
        Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

        What makes you think the hardware wouldn't work? If you look after your gear, it doesn't just randomly break. Most of what I did for fifteen years on that maintenance contract was carefully taking the machine apart and cleaning it once a year - and boy did it get filthy from sitting in a barn running a bunch of industrial equipment.

        Although I did do some programming on it in the past decade. Once. That was ... "interesting".