Prints a value-field character. : Variable « Report « Perl






Prints a value-field character.

   
#!/usr/local/bin/perl 

format SPECIAL = 
This line contains the special character @. 
"@" 

. 

$~ = "SPECIAL"; 
write; 

   
    
    
  








Related examples in the same category

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