Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

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.

D'oh!

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 handbook.pl" (handbook.pl code below) and the command window just displays the prompt and "perl cmdProcessor.pl" 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 cmdProcessor.pl" 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 'cmdProcessor.pl'; require 'tlmProcessor.pl'; #---------------------------------------------------------------# # subroutine definitions # #---------------------------------------------------------------# sub tlmProcessor; sub cmdProcessor; #---------------------------------------------------------------# # Main Program # #---------------------------------------------------------------# print "Generating Handbook Files....\n"; tlmProcessor(); cmdProcessor(); print "Handbook complete!\n";
Kaiti
Swiss Army Nerd Idiot

In reply to One Bizarre Perl Problem by jedikaiti

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!
  • 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
  • Outside of code tags, you may need to use entities for some characters:
            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?
    Username:
    Password:

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

    How do I use this? | Other CB clients
    Other Users?
    Others having an uproarious good time at the Monastery: (8)
    As of 2014-08-01 11:27 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      Who would be the most fun to work for?















      Results (8 votes), past polls