[slim] Re: Perl Problem (OT)

2006-05-11 Thread Foggy3657
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

[slim] Re: Perl Problem (OT)

2006-05-11 Thread eq72521
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

[slim] Re: Perl Problem (OT)

2006-05-10 Thread SteveEast
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

[slim] Re: Perl Problem (OT)

2006-05-10 Thread snarlydwarf
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 __

[slim] Re: Perl Problem (OT)

2006-05-10 Thread SteveEast
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

[slim] Re: Perl Problem (OT)

2006-05-10 Thread snarlydwarf
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 ___

[slim] Re: Perl Problem (OT)

2006-05-10 Thread SteveEast
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

[slim] Re: Perl Problem (OT)

2006-05-10 Thread cepheid
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

[slim] Re: Perl Problem (OT)

2006-05-10 Thread SteveEast
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

[slim] Re: Perl Problem (OT)

2006-05-10 Thread cepheid
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