Hi All,
Thank you every one that replied.
The issue has now been resolved and I actualy learnt something in the
process.
Best wishes.
James.
--
Foggy3657
Foggy3657's Profile: http://forums.slimdevices.com/member.php?u
I think the reason that the OP didn't look back here is that I actually
responded to his message via email right away yesterday and provided
something similar. Sorry, I should have posted something to that
effect here.
--
eq72521
Thinking about it, you're probably right - hiding the EOLs in $J is a
bit obscure if the OP is new to perl, so:
open (O, "New_File.txt") or die;
while () {
chomp;
($A, $B, $C, $D, $E, $F, $G, $H, $I, $J, $extras) = split /,/, $_,
11;
die "whoops, too many fields" if $ext
ah, nm, the eol's are being picked up in $J.
--
snarlydwarf
snarlydwarf's Profile: http://forums.slimdevices.com/member.php?userid=1179
View this thread: http://forums.slimdevices.com/showthread.php?t=23777
__
Nope, the EOLs arrive and depart in $J. I did actually test the code :)
Steve.
--
SteveEast
SteveEast's Profile: http://forums.slimdevices.com/member.php?userid=4193
View this thread: http://forums.slimdevices.com/showthr
you forgot a chomp and \n's. :)
--
snarlydwarf
snarlydwarf's Profile: http://forums.slimdevices.com/member.php?userid=1179
View this thread: http://forums.slimdevices.com/showthread.php?t=23777
___
Here it is, edit to taste. I made a bunch of assumptions about the
validity of the input data and let the files be in the current
directory...
open (O, "New_File.txt") or die;
while () {
($A, $B, $C, $D, $E, $F, $G, $H, $I, $J, $extras) = split /,/, $_,
11;
die "whoops, too many fields" if $ext
SteveEast Wrote:
> I was gonna post the code here but then I saw that cepheid's occupation
> is listed as "starving graduate student"...
Well, you may as well, especially given that the task is rather easy to
do. I was sort of planning to post it here myself, once I saw that it
was so straightfo
I was gonna post the code here but then I saw that cepheid's occupation
is listed as "starving graduate student"...
Steve.
--
SteveEast
SteveEast's Profile: http://forums.slimdevices.com/member.php?userid=4193
View this t
You've got PM.
--
cepheid
cepheid's Profile: http://forums.slimdevices.com/member.php?userid=3845
View this thread: http://forums.slimdevices.com/showthread.php?t=23777
___
disc
10 matches
Mail list logo