in reply to Re: Expanding a variable
in thread Expanding a variable

Have you tested your code?
$ perl -E 'my $x = 3; say "foo\$x"' foo$x

(Agreed on the thre-argument open though)

Perl 6 - links to (nearly) everything that is Perl 6.

Replies are listed 'Best First'.
Re^3: Expanding a variable
by Utilitarian (Vicar) on Sep 09, 2010 at 14:03 UTC
    Edited to fix, no windows sys handy, so I forgot the obvious error.
    print "Good ",qw(night morning afternoon evening)[(localtime)[2]/6]," fellow monks."