in reply to Re^2: Converting File Delimiters
in thread Converting File Delimiters
"I used your example and added file references but the script is not outputting all of the rows."
You haven't shown any input or output!
I am unable to reproduce your problem using your code above (with just the filenames changed). My script (pm_csv_to_psv_fhs.pl) has:
my $FileIn = './pm_csv_to_psv_fhs.in'; my $FileOut = './pm_csv_to_psv_fhs.out';
Here's a verbatim run showing input and (before and after) output:
ken@ganymede: ~/tmp $ cat pm_csv_to_psv_fhs.in a,b,"c,d",e "f,g,h",i,j,"k,l" m,n,o,p,q,r,s,t "u,v,w,x,y,z" ken@ganymede: ~/tmp $ cat pm_csv_to_psv_fhs.out cat: pm_csv_to_psv_fhs.out: No such file or directory ken@ganymede: ~/tmp $ pm_csv_to_psv_fhs.pl ken@ganymede: ~/tmp $ cat pm_csv_to_psv_fhs.out a|b|c,d|e f,g,h|i|j|k,l m|n|o|p|q|r|s|t u,v,w,x,y,z ken@ganymede: ~/tmp $
Please show equivalent information for a run of your script.
Here's some other points to consider: all documented in open.
Given you're new to Perl, you may be finding the documentation for open to be a little heavy going. If so, read perlopentut first - it provides a gentler introduction to the subject.
-- Ken
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Converting File Delimiters
by mmueller44 (Novice) on Aug 14, 2012 at 01:31 UTC | |
by BrowserUk (Patriarch) on Aug 14, 2012 at 02:43 UTC | |
by mmueller44 (Novice) on Aug 16, 2012 at 18:07 UTC |