V
vedpsingh
Hi,
I want to print the below mentioned text.
------------------------------
multved_HQrow0IN := "0000000000000000";
multved_HQrow1IN := "0000000000000000";
multved_HQrow2IN := "0000000000000000";
multved_HQrow3IN := "0000000000000000";
multved_HQrow4IN := "0000000000000000";
----------------------------
For this I have written the code given below:
--------------------------------------------------------
use strict; # important pragma
use warnings; # another important pragma
print "Enter value of instantiations ? "; # print out the question
my $i; # \declare" the variable
my $j;
$j = <STDIN>; # ask for the username
chomp($j); # remove \new line"
for ($i = 0; $i<= $j; $i++) {
open (MYFILE, '>>MultRecover.txt');
print MYFILE "
multved_HQrow$iIN := "0000000000000000";
\n ";
}
close (MYFILE);
--------------------------------------------------
I get error in 2 things:
(1) $iIN -----> i.e. I after $i
(2) " " are special characters. What do I do to print them.
Thanks
Ved
I want to print the below mentioned text.
------------------------------
multved_HQrow0IN := "0000000000000000";
multved_HQrow1IN := "0000000000000000";
multved_HQrow2IN := "0000000000000000";
multved_HQrow3IN := "0000000000000000";
multved_HQrow4IN := "0000000000000000";
----------------------------
For this I have written the code given below:
--------------------------------------------------------
use strict; # important pragma
use warnings; # another important pragma
print "Enter value of instantiations ? "; # print out the question
my $i; # \declare" the variable
my $j;
$j = <STDIN>; # ask for the username
chomp($j); # remove \new line"
for ($i = 0; $i<= $j; $i++) {
open (MYFILE, '>>MultRecover.txt');
print MYFILE "
multved_HQrow$iIN := "0000000000000000";
\n ";
}
close (MYFILE);
--------------------------------------------------
I get error in 2 things:
(1) $iIN -----> i.e. I after $i
(2) " " are special characters. What do I do to print them.
Thanks
Ved