Well, I tried this code on my work server, which I know has a perfectly working Perl install. It still is giving me the same error:
Argument "Daft Punk\\Homework\\01 Daftendirekt\r\n" isn't numeric in numeric ne (!=) at mp3listgen.pl line 142, <INPUTFILE> line 1.

Here's my code...I'd greatly appreciate any help I could get.
#!/usr/bin/perl -w $fileOUT = "mp3list.txt"; open(OUTPUTFILE,">$fileOUT"); $filename = "A02.txt"; &parseDown; $filename = "A03.txt"; &parseDown; $filename = "A04.txt"; &parseDown; $filename = "A05.txt"; &parseDown; $filename = "A06.txt"; &parseDown; $filename = "A07.txt"; &parseDown; $filename = "A08.txt"; &parseDown; $filename = "A09.txt"; &parseDown; $filename = "A10.txt"; &parseDown; close(OUTPUTFILE); sub parseDown { open(INPUTFILE,"$filename"); $dir = ""; while(($line = <INPUTFILE>) != null) { $line =~ m%(.*)\\(.*)%; $tmp_dir = $1; $line = $2; if ($tmp_dir ne $dir) { print OUTPUTFILE "\n" . $tmp_dir . "\n"; $dir = $tmp_dir; } chomp($line); print OUTPUTFILE "\t" . $line . "\n"; } close(INPUTFILE); }
The files have entries that look like this:
Paul van Dyk\Seven Ways\01 Home Paul van Dyk\Seven Ways\02 Seven Ways Paul van Dyk\Seven Ways\03 Heaven Paul van Dyk\Seven Ways\04 I Like It Paul van Dyk\Seven Ways\05 Come (and Get It) Paul van Dyk\Seven Ways\06 Forbidden Fruit Paul van Dyk\Seven Ways\07 Beautiful Place Paul van Dyk\Seven Ways\08 People Paul van Dyk\Seven Ways\09 The Greatness of Britain Paul van Dyk\Seven Ways\10 I Can't Feel It Paul van Dyk\Seven Ways\11 Words

Thanks again,
Justin

In reply to Re: Really dumb question... ('ne' not working) by Anonymous Monk
in thread Really dumb question... ('ne' not working) by Apathy

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.