Perl Monks,
Sorry if this is a trivial question but I am new to this environment and cannot figure out immediately how to do it. I am running a foreach loop for a huge number of elements (files). I need to track where I currently am, and therefore, I would like the program to spit out the current iteration of the loop. When I do it, it spits out the whole output at the end of execution.
I am running active perl on Windows, and use Komodo Edit. Any help with this will be highly appreciated!
Thanks,
George
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|