
ichi
User
Jul 25, 2009, 7:48 AM
Post #7 of 7
(8094 views)
|
Re: [perllearner] concatenate files
[In reply to]
|
Can't Post
|
|
Sorry if I had coded anything wrong. And since I had shell in my system I used this method. If anyone knows any alternate method for reading the contents of a file and storing it in an array, kndly post it so that it would be helpful. Thanks.. no , its not wrong to shell out and call these tools. BUT, since you are using Perl, which is a "powerful" language, all the capabilities of shell tools , Perl can provide. So why not do everything in Perl. it makes your Perl code portable to windows machines (etc) as well...i suggest you read up on Perl's doc to familiarize yourself more ...
(This post was edited by ichi on Jul 25, 2009, 7:49 AM)
|