Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Perl
Perl Misc
Unix commands
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="John Bokma, post: 4832084"] nor is it guaranteed that there is a perl executable, nor is it guaranteed that it's the version you're expecting. Nor is it guaranteed that your Perl program doesn't trigger a platform specific bug in Perl or the modules you're using. Comes with the job. Nor is installing ls (for example) an impossible hurdle. If it is, then it was implied by the requirements of the job, and I wouldn't have chosen that solution (if it was already apropriate in the first place). What is it you don't get? Don't know what your rates are but there are plenty of external programs that if I have to copy those in Perl that its cheaper to buy an additional computer or a faster one. Also, if execution time / memory usage are an issue Perl might be very well have been a bad choice in the first place. Exactly, I already wrote "Depends on what you're doing of course." Fine with me. You understand that "Depends on what you're doing" was a reply to "It's generally preferable to use Perl when you write Perl programs." I disagree with that. There are plenty of examples that in my opinion an external program is preferable. Perl is amongst others a glue language. In some situations yes. In plenty of others no. Like I wrote (again): "Depends on what you're doing" Depends on what you're doing I quote the whole thing again: " Because 1) it's inefficient in that you are forking and exec'ing a process to do it and 2) portability - there's no guarantee that the next platform you port this to has the same commands. For example, you use "ls" above. But there is no "ls" under Windows. If instead you use a more Perl like way your Perl script will immediately port without and issue. " My "Depends..." was a comment on the "generally ... use Perl ... write Perl". You seemed to be trying to make a point by staring yourself blind on ls. Again notice that "Depends on what you're doing" is includes all kind of external programs that can be called from Perl. Which I do now and then, because when I do so I consider it the (my) best possible solution. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Perl
Perl Misc
Unix commands
Top