SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG
DONATE




YUM REPOSITORY

 
 

MAN page from Mandriva 2010 perl-Text-Shellwords-1.80.0-1mdv2010.0.noarch.rpm

Shellwords

Section: User Contributed Perl Documentation (3)
Updated: 2005-11-10
Index 

NAME

Text::Shellwords 

SYNOPSIS

  use Text::Shellwords;  @words = shellwords($line);  @words = shellwords(@lines);
 

DESCRIPTION

This used to be a wrapper around shellwords.pl, but has now beensuperseded by Text::ParseWords. Use that module insteade. If youuse this module, it will simply report the shellwords() function fromText::ParseWords.

The old description follows:

This is a thin wrapper around the shellwords.pl package, which comespreinstalled with Perl. This module imports a single subroutine,shellwords(). The shellwords() routine parses lines of text andreturns a set of tokens using the same rules that the Unix shell doesfor its command-line arguments. Tokens are separated by whitespace,and can be delimited by single or double quotes. The module alsorespects backslash escapes.

If called with one or more arguments, shellwords() will treat eachargument as a line of text, parse it, and return the tokens.

Note that the old behavior of parsing $_ if no arguments are providedis no longer supported. Sorry. 

BUGS

Please report them. 

SEE ALSO

shellwords.pl 

AUTHOR

Lincoln Stein <lsteinAATTcshl.org>.

Copyright (c) 2001 Cold Spring Harbor Laboratory

This library is free software; you can redistribute it and/or modifyit under the same terms as Perl itself. See DISCLAIMER.txt fordisclaimers of warranty.


 

Index

NAME
SYNOPSIS
DESCRIPTION
BUGS
SEE ALSO
AUTHOR

This document was created byman2html,using the manual pages.