Manual

- Overview
- Tutorials
- FAQs
- History / Changes
- License

Reference

- Language
- Functions
- Operators
- Special Variables
- Pragmas
- Utilities
- Internals
- Platform Specific

Modules

- A • B • C • D • E
- F • G • H • I • L
- M • N • O • P • S
- T • U • X

News / Blogs

- Perl Buzz
- Perl Iron Man
- Perlsphere
- Planet Perl
- TPF news
- Use Perl

See also

- CPAN
- Perl.org
- Perl.com
- Perl 5 Wiki
- Perl Jobs
- Perl Mongers
- Perl Monks

Contact

- Site designed and maintained by Jon Allen (JJ)
- http://perl.jonallen.info

- View the project page and FAQs

# CPAN::HandleConfig

Perl 5 version 10.1 documentation
Go to top • Show page index • Download PDF

# CPAN::HandleConfig

- LICENSE

## `CLASS->safe_quote ITEM`

Quotes an item to become safe against spaces in shell interpolation. An item is enclosed in double quotes if:

      - the item contains spaces in the middle  - the item does not start with a quote

This happens to avoid shell interpolation problems when whitespace is present in directory names.

This method uses `commands_quote` to determine the correct quote. If `commands_quote` is a space, no quoting will take place.

if it starts and ends with the same quote character: leave it as it is

if it contains no whitespace: leave it as it is

if it contains whitespace, then

if it contains quotes: better leave it as it is

else: quote it with the correct quote type for the box we're on

# LICENSE

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

Page index

- LICENSE

Recently read

Tools

- Preferences