1CPAN::HandleConfig(3pm)Perl Programmers Reference GuideCPAN::HandleConfig(3pm)
2
3
4
5   "CLASS->safe_quote ITEM"
6       Quotes an item to become safe against spaces in shell interpolation. An
7       item is enclosed in double quotes if:
8
9         - the item contains spaces in the middle
10         - the item does not start with a quote
11
12       This happens to avoid shell interpolation problems when whitespace is
13       present in directory names.
14
15       This method uses "commands_quote" to determine the correct quote. If
16       "commands_quote" is a space, no quoting will take place.
17
18       if it starts and ends with the same quote character: leave it as it is
19
20       if it contains no whitespace: leave it as it is
21
22       if it contains whitespace, then
23
24       if it contains quotes: better leave it as it is
25
26       else: quote it with the correct quote type for the box we're on
27

LICENSE

29       This program is free software; you can redistribute it and/or modify it
30       under the same terms as Perl itself.
31
32
33
34perl v5.10.1                      2009-06-27           CPAN::HandleConfig(3pm)
Impressum