On Sun, Mar 9, 2014 at 5:58 PM, Teoh khah swee <ks.teo...@gmail.com> wrote:
> HI all,
>
> I just come across an case statement for puppet. I would like to know what
> the means of the mx for below sample code?
>
> case $::operatingsystem {
>    /(?-mx:AIX)/ :{

From:

http://perldoc.perl.org/perlre.html

(?adlupimsx-imsx)
(?^alupimsx)
One or more embedded pattern-match modifiers, to be turned on (or
turned off, if preceded by - ) for the remainder of the pattern or the
remainder of the enclosing pattern group (if any).

(?adluimsx-imsx:pattern)

m:
Treat string as multiple lines. That is, change "^" and "$" from
matching the start or end of line only at the left and right ends of
the string to matching them anywhere within the string.

x:
Extend your pattern's legibility by permitting whitespace and comments.

I would then say that puppet is looking for AIX without capturing it
and has turned off the m and x options for this pattern match.

-mz

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CAOLfK3UqiaJdUNkCwBQvq83LG8-mqeHaCJkiMd7MU4%2BC0pXmdQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to