I'm supposed to test if 'name' is consisting of letters:

```
name = "Jack"

test = 'name =~ /^[A-Z]/'

```

As far as i understand, this:

```
puts eval(test)

```

should return: TRUE, but the output given is a '0', (yes, i know that 0 in some languages == false..)

But if i try the eval in an if-statement..

```
if eval(test)
puts 'yeah'
end

```

..i get the expected outcome.. TRUE, or rather: 'yeah'..

Why cant i get the 'correct' output right away? Have'nt found anything that makes sense, from my friends @ Google..