Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Advice/help with beginner script (file sorting, execute command line command)

by Sinistral (Monsignor)
on May 21, 2014 at 20:40 UTC ( [id://1087025]=note: print w/replies, xml ) Need Help??


in reply to Advice/help with beginner script (file sorting, execute command line command)

As much as I love Perl, since you're on a Windows 7 box, I would highly recommend using Power Shell. All of the functionality you describe can be done with native methods in PowerShell, and arguably can be done faster than a Windows compiled Perl could. You've come to the right place if you really want to do it in Perl, but it might be worth considering

  • Comment on Re: Advice/help with beginner script (file sorting, execute command line command)

Replies are listed 'Best First'.
Re^2: Advice/help with beginner script (file sorting, execute command line command)
by Laurent_R (Canon) on May 21, 2014 at 21:55 UTC
    Sorry, but you must be kidding. Sure you can do things in power shell, but Perl is so much better, more expressive, more powerful, faster and so on. I am using regularly Unix shell scripting to launch my Perl program because it is sometimes useful to use OS scripts to do a few things (such as defining environment variables), but I would never recommend using sh or csh or ksh to replace Perl.
Re^2: Advice/help with beginner script (file sorting, execute command line command)
by UserMane (Initiate) on May 21, 2014 at 23:38 UTC
    Thanks for the reply. Interesting you should say that, I was thinking the same thing. The program that I want to run is written in Java, accessed via the command line using a wrapper written in Perl. Using a PowerShell script to run a Perl wrapper for a program written in Java seems a bit convoluted and I thought I may as well try it in Perl, but I think you may be correct.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (8)
As of 2024-04-18 17:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found