我有一个这样的 txt 文件
$CHUNK_QTY = "50000";
$CLIENT = "大家好";
$CLIENT_CODE = "NMB";
$COMPOSER = "对话";
$CONTROL_FILE_NAME = "NMBM725.XML";
$COPY_BASE = "01";
$CSITE = "NSH";
$DATA_TYPE = "MET";
$DIALOGUE_VERSION = "V7R0M624";
$禁用 = "N";
$DPI = "300";
$DP_BAR_START = "A";
$DP_BAR_STOP = "Z";
$双工 = "N";
$Dialogue_Version = "V7R0M624";
$EMAIL_ERROR = "Y";
$EMAIL_ON = "N";
我有很多变量,最多 500 个。我想访问相应变量的值。例如,如果我想访问 $DPI 它应该打印 300 。我如何在 perl 中做到这一点。任何帮助将不胜感激。我想要一些不同于正则表达式的东西。
谢谢