![]() |
|
go ahead... be a heretic | |
PerlMonks |
Re^4: Does problem is in the for loop???by afoken (Chancellor) |
on May 11, 2015 at 10:21 UTC ( #1126293=note: print w/replies, xml ) | Need Help?? |
print OUT if ((s/m/$uut_names[$i]/) && (s/in1/$nets[$i]/) && (s/output/$enabled_nets[$i]/)); You are missing the while (<IN>) { ... } loop around this statement. print defaults to writing $_ when called without arguments or only a file handle. Stupid demo:
Alexander
-- Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
In Section
Seekers of Perl Wisdom
|
|