I'm not entirely sure what you're asking, so I'm afraid I can't help very much, though I can point out a few things you might want to be careful of:
print color("white"), "\n $elt ", color("reset") . color("green") , "\
+t\t\t Ok", color("reset");
I'm sure this is in a loop of some type. If you want to format your output you should probably use printf, the print format command (though I'm unsure of how to mix the colors in there).
foreach $i ($elt)
{
$check = system($check . $elt);
if ( $check > 0 )
{
}
elsif ( $check = 1 )
this statement will assign a value of 1 to $check, so what you're saying here is "if $check is 0 or less, assign a value of 1 to it and continue with the block". This may not be what you want.
Hope this helps...update: and you may want to
use warnings;
at the top of your script.
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, details, 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, summary, 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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.