ignoranceisblis
07-01-2005, 07:48 PM
I'm writing a program to display the contents of a folder 3-dimensionally using the perl OpenGL and SDL modules. I need to be able to parse the command 'ls-s'. Assuming the output will look about like this:
6948 05 Did My Time.mp3
3420 05 Pennsylvania Is.mp3
7560 05-insane_clown_posse-red_neck_hoe-rfx.mp3
4240 05-r._kelly_and_jay-z-take_you_home_with_me-tas.mp3
3368 05-the_alchemist_feat._the_game-when_u_hear_that-whoa.mp3
4288 06 - Insane Clown Posse - Run!.mp3
6340 06 Alone I Break.mp3
3572 06 Nervous & Werid.mp3
with size on the left and then file names on the right. How can I parse this? Normally I would replace spaces with commas and parse that but the file names themselves have spaces so that won't work. Any Ideas?
6948 05 Did My Time.mp3
3420 05 Pennsylvania Is.mp3
7560 05-insane_clown_posse-red_neck_hoe-rfx.mp3
4240 05-r._kelly_and_jay-z-take_you_home_with_me-tas.mp3
3368 05-the_alchemist_feat._the_game-when_u_hear_that-whoa.mp3
4288 06 - Insane Clown Posse - Run!.mp3
6340 06 Alone I Break.mp3
3572 06 Nervous & Werid.mp3
with size on the left and then file names on the right. How can I parse this? Normally I would replace spaces with commas and parse that but the file names themselves have spaces so that won't work. Any Ideas?