Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^3: print last file updated into directory

by perlron (Pilgrim)
on Oct 31, 2014 at 03:55 UTC ( [id://1105693]=note: print w/replies, xml ) Need Help??


in reply to Re^2: print last file updated into directory
in thread print last file updated into directory


Hello Anonymous Monk,
By low level , is it that it is not an efficient way to traverse directory structures ?
was just reading up about Path::Tiny on CPAN. It says it does not try to work in non-Windows and non-linux mode.
also i see it has quite a few dependencies and wondering if it was pure perl or not, which might be a deciding factor for me ?
I ran the following command to check the above
perl -MPath::Tiny -MDynaLoader -E 'say for sort $@DynaLoader::dl_modul +es;'
which gave me the output
Cwd File::Glob

The temporal difficulty with perl is u need to know C well to know the awesome.else u just keep *using* it and writing inefficient code

Replies are listed 'Best First'.
Re^4: print last file updated into directory
by Anonymous Monk on Oct 31, 2014 at 08:33 UTC

      thanks for the pointers. makes sense to use the latest version of perl then.
      I use a box which has 5.10.1.
      some of the customers ive worked with have HP UX and solaris , besides there's no telling to which server OS, they will migrate to in the future, in which case i might have to rework the code if i use Path::Tiny.
      Thanks! im learning

      The temporal difficulty with perl is u need to know C well to know the awesome.else u just keep *using* it and writing inefficient code

        Just an FYI, if you look at the links Anonymous Monk gave you, and checked the dependencies, they're all core and have been for many years. Path::Tiny is a pure perl module, so likely this won't give you much cause for concern.

        besides there's no telling to which server OS, they will migrate to in the future, in which case i might have to rework the code if i use Path::Tiny.

        Program for today and today's operating systems to solve todays problem, what you're actually getting paid for, the future is unpredictable, cross that bridge when you get paid for it :)

        FWIW the way I see it Path::Tiny should work for you today, it should work for 99% of computers in use today, because 99% are Unix-like and Win32Windows

        Some perspective on predicting the future Re^6: Finding repeat sequences.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1105693]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2024-04-18 14:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found