in reply to @ Regular Expression

Change
my $machine_class
to
my ($machine_class)
to cause the match to be evaluated in list context.

Replies are listed 'Best First'.
Re^2: @ Regular Expression
by siddheshsawant (Sexton) on May 14, 2010 at 15:29 UTC
    Thanks a lot .....That worked for me