in reply to Re: Syntax Error deleting files and folders in a directory
in thread Syntax Error deleting files and folders in a directory

Thank you Ken. MS is the problem here, regarding the '\'. I knew that it would probably become an issue due to the fact that it is used to escape chars to literals and not syntax. I will research File::Spec as I was informed by my Perl sme that there was a module that could correct MS's ridiculous '\' issue within directory names, but he could not remember the name of the module. My suspicion is that you just provided me the answer/module I was looking for. As for the error; Padwalker via EPIC only gave me "Syntax Error" on the line I cited. I apologize for being vague, but I had no other information. I will also employ the diagnostics module so that I can avoid the same in the future. I appreciate this community so much now that I have found it. What a prize to have such a supportive group, especially for a Newb.

  • Comment on Re^2: Syntax Error deleting files and folders in a directory

Replies are listed 'Best First'.
Re^3: Syntax Error deleting files and folders in a directory
by GrandFather (Saint) on Dec 29, 2013 at 01:04 UTC

    Nah, MS is not the problem. Pretty much anywhere you can use / instead of \ in MS paths (some applications get grumpy, but it's pretty much always ok in Perl).

    You may find Padre IDE better than Eclipse/EPIC for working with Perl scripts. It's a long while since I last looked at the Eclipse/EPIC abomination and it may have improved out of sight, but Eclipse was a poor fit for use as a Perl IDE. If all you need is a good editor take a look at Komodo Edit or Sublime Text. The Komodo IDE is excellent, but costs around $US300 so unless you plan to be a serious user it's likely not an option.

    In any case running the script should get you the real diagnostics that Eclipse/EPIC is protecting you from.

    True laziness is hard work

      Thanks again Grandfather. I plan on being a serious user....but my learning curve seems to be pretty flat with Perl, which paradoxically has become a stumbling block. I will sally-forth with as much tenacity as I can muster and try to get through this part of the learning phase.