Would `slice()` or some other built in be better t...
# puppet
g
Would
slice()
or some other built in be better than this?
Copy code
$first_char = inline_template('<%= @hostname[0,1 ] %>')
  $first_two_chars = inline_template('<%= @hostname[0, 2] %>')