in reply to Re^2: Formatting Text...Again
in thread Formatting Text...Again

If you don't understand simple scalar variables then you need to start with reading Perl Babysteps 1: Your First Simple Script. You are no where near ready to be parsing and reformating files! When you have read that turtorial and some of the others in the Getting Started with Perl section of tutorials, come back and we will help further.

Not understanding fundamental stuff like scalar variables is a severe impediment to completing any Perl script! We can provide a solution script for your assignement, but that doesn't help you at all. What is incredible though is that you have been given such an assignment when you seem to be so ill equiped to complete it. Is this because the course is poorly structured, or is your teacher right out of touch with what is actually going on in class?


DWIM is Perl's answer to Gödel

Replies are listed 'Best First'.
Re^4: Formatting Text...Again
by lollipop7081 (Novice) on May 22, 2006 at 03:03 UTC
    A little of both I presume - it's allowed to be taken by anyone who wishes with instructor permission, but the instructor gives permission to everyone. He misrepresented the class and by the time I realized I was over my head it was to late to drop the class. (also, the class costs almost $3000 so taking an incomplete would be devastating to my finances). I realize that there's no way to complete the assignment in the time he's given me (a week and a half, it's due on the 23rd), but I want to do what I can and try to get a fairly decent grade in the class if possible.

      Ouch! I wondered if it might be something like that. But $3000!

      Ok, we'll help as much as we can, but you have some work to do! Get reading those tutorials. Come back with any questions after you've done the reading.


      DWIM is Perl's answer to Gödel
      "my professor assigned perl just to see how good we'd do (with only basic instruction on perl)." (from your first post on the topic)

      Are you sure he expects people to do well? It seems if he gave only basic instruction on Perl, he gave an interesting set of requirements. . . I'm just guessing he may intend something through this assignment other than seeing you write a professional program. Do you know he's going to give you an actual grade on it?


      -----------------
      s''limp';@p=split '!','n!h!p!';s,m,s,;$s=y;$c=slice @p1;so brutally;d;$n=reverse;$c=$s**$#p;print(''.$c^chop($n))while($c/=$#p)>=1;