Ovid writes:
> You know, this should be simple and maybe I'm overlooking something
> obvious. I was trying out Pugs and my first program worked great:
>
> for 1 .. 6 -> $var {
> say $var;
> }
>
> The second version didn't:
>
> for 1 .. 6 {
> say;
> }
>
> For the life of me, I
You know, this should be simple and maybe I'm overlooking something
obvious. I was trying out Pugs and my first program worked great:
for 1 .. 6 -> $var {
say $var;
}
The second version didn't:
for 1 .. 6 {
say;
}
For the life of me, I can't recall if "say" (or "print", for th