Skip to content
Sections
>> Trisquel >> 软件包 >> aramo >> perl >> libstring-expand-perl
etiona  ] [  nabia  ] [  aramo  ]
[ 源代码: libstring-expand-perl  ]

软件包: libstring-expand-perl (0.04-3)

string utility functions for expanding variables in self-referential sets

String::Expand implements utility functions for expanding embedded variables in a string. Variable references are embedded in strings in a similar form to the Bourne shell, namely, in the form $NAME or ${OTHER_NAME}. In the former case, the NAME must consist of a capital letter or underscore, and may be followed by zero or more capital letters, digits or underscores. In the latter case, the name can consist of any characters, but will be terminated by the first close brace character '}'.

This is especially useful if you want to expand environment variables inside strings.

The string may also contain literal dollar marks, escaped by \$, and literal escape marks, escaped by \\. These will be converted to $ and \ respectively on return.

While there are many other modules that also provide expansion such as this, this module provides the function expand_strings(), which will perform variable expansions in all the values in a given hash, where values can refer to other values within the same hash.

其他与 libstring-expand-perl 有关的软件包

  • 依赖
  • 推荐
  • 建议
  • dep: perl
    Larry Wall's Practical Extraction and Report Language

下载 libstring-expand-perl

下载可用于所有硬件架构的
硬件架构 软件包大小 安装后大小 文件
all 7.2 kB21 kB [文件列表]