pastebin
| #1 paste tool since 2002
create new paste
tools
api
archive
real-time
faq
pastebin
Follow @pastebin
create new paste
trending pastes
sign up
login
my settings
my profile
My Pastes
Public Pastes
Untitled
1 sec ago
Untitled
7 sec ago
Uploading.com Premium A...
11 sec ago
Untitled
19 sec ago
Th3Innocent
30 sec ago
Untitled
25 sec ago
Untitled
32 sec ago
Untitled
34 sec ago
Layout Width
Share Pastebin
Untitled
By: a guest | Mar 2nd, 2010 | Syntax:
None
| Size: 0.26 KB | Hits: 203 | Expires: Never
Download
|
Raw
|
Embed
|
Report abuse
graham@graham-usb$ cat regex-test.pp
$string = "Hello World"
$test = $string ? {
/Hello/ => "yes",
default => "no",
}
notify{"$test":}
graham@graham-usb$ puppet regex-test.pp
notice: no
notice: //Notify[no]/message: defined 'message' as 'no'
create new paste
|
create new version of this paste
RAW Paste Data
graham@graham-usb$ cat regex-test.pp $string = "Hello World" $test = $string ? { /Hello/ => "yes", default => "no", } notify{"$test":} graham@graham-usb$ puppet regex-test.pp notice: no notice: //Notify[no]/message: defined 'message' as 'no'