The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Syntax::Feature::Qs - Trim leading whitespace from all lines in a string

Requires Perl 5.10+ Travis status Distribution kwalitee CPAN Testers result coverage 98.6%

VERSION

Version 1.0000, released 2017-02-12.

SYNOPSIS

    use syntax 'qs';

    say qs{
        Multi line
        string
    };

    # is exactly the same as

    say q{
    Multi line
    string
    };

DESCRIPTION

This is a syntax extension to be used with syntax.

It provides two quote-like operators, qs and qqs. They are drop-in replacements for q and qq, respectively.

Their purpose is to automatically trim leading and trailing horizontal whitespace on every line. They do not remove empty lines.

SEE ALSO

SOURCE

https://github.com/Csson/p5-Syntax-Feature-Qs

HOMEPAGE

https://metacpan.org/release/Syntax-Feature-Qs

AUTHOR

Erik Carlsson <info@code301.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2016 by Erik Carlsson.

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