Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Comment on

( #3333=superdoc: print w/ replies, xml ) Need Help??

Cancel red alert, I am an idiot. I am consoled, somewhat, by the fact that the nice IT guy who installed Perl (I don't have the permissions) and who was helping me figure what on earth could be the problem with my Perl install didn't catch this, either.

I had a batch file in my directory. Called perl.bat. Created when I was trying to remind myself how to do batch files. Then forgotten.


sorry for the not-terribly-descriptive subject line, but I have no idea how else to sum this one up.

posted this to CB earlier, but I think this might be a bit too big/wierd a question for that forum...

OK guys, I have a rather bizarre problem. 2 computers, both running WinXP Pro, both with Strawberry Perl installed - one has 5.10.1 (laptop), the other 5.12.1 (desktop).

I developed a lovely little program on the laptop, it works like a charm. Copy it over to the other machine to run, type in the command "perl" ( code below) and the command window just displays the prompt and "perl" over and over and over until I hit the pause/break key. Hit ctrl-C, and it asks me if I want to terminate the batch job. Hit 'y', enter the command "perl -h" and it does the same thing - repeating the prompt and "perl" over & over.

Does anyone have any clue what might possibly be wrong?

Both the tlmProcessor and cmdProcessor routines have a simple print statement very early in the process along the lines of "I'm doing ___ now!". Neither of them ever prints.

#!/usr/bin/perl -w use strict; use warnings; #use Data::Dumper; #---------------------------------------------------------------# # subroutine files # #---------------------------------------------------------------# require ''; require ''; #---------------------------------------------------------------# # subroutine definitions # #---------------------------------------------------------------# sub tlmProcessor; sub cmdProcessor; #---------------------------------------------------------------# # Main Program # #---------------------------------------------------------------# print "Generating Handbook Files....\n"; tlmProcessor(); cmdProcessor(); print "Handbook complete!\n";
Swiss Army Nerd Idiot

In reply to One Bizarre Perl Problem by jedikaiti

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, 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, 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.
  • Log In?

    What's my password?
    Create A New User
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others perusing the Monastery: (8)
    As of 2015-12-01 12:48 GMT
    Find Nodes?
      Voting Booth?

      My keyboard shows this many letters:

      Results (9 votes), past polls