in reply to Regex from string

Hi, Try this,

use strict; use warnings; my $line = "root (hd1,1)"; my $match = qr/root \(hd[0-9],[0-9]\)/i; if ($line =~ $match) { print "match 1 found \n"; }

Regards,
Velusamy R.


eval"print uc\"\\c$_\""for split'','j)@,/6%@0%2,`e@3!-9v2)/@|6%,53!-9@2~j';