in reply to simple regular expression printing

As an additional comment to what has already been said, don't use bare words like this:

my $what = ram;

But rather use this:

my $what = "ram";

or:

my $what = 'ram';

Replies are listed 'Best First'.
Re^2: simple regular expression printing
by gaurav (Sexton) on Jul 15, 2013 at 08:10 UTC

    Thanks Laurent..I will keep this thing in mind