Passing value to the format : Variable « Report « Perl






Passing value to the format

   

format STDOUT =
@<<<<<<<<<<<@<<<<<<<<<<<<<<<
$text1      $text2
@<<<<<<<<<<<@<<<<<<<<<<<<<<<
$text3      $text4
.

$text1 = "Hello";
$text2 = "there!";
$text3 = "How're";
$text4 = "things?";

write;

   
    
    
  








Related examples in the same category

1.Passing one variable with ! inside to format
2.Prints a value-field character.
3.Put a variable in the report header
4.Separate the variables with commas to put multiple data fields on the same line