Hi from an (until now) silent list reader, Nigel Peck writes: > I probably should have explained what this is doing, the match m// takes > the string in $test and (using the parenthesis for capturing), puts the > first character in $1, the second 4 characters in $2... [...]
Such explanations are greatly appreciated (even when I can sometimes figure these out myself, it's nice to have someone run through it). > my $test = "Rnott230602.txt"; > if ( $test =~ m/^(.{1})(.{4})(.{6})\.(.{3})$/ ) { What is the difference between "if ( $test =~ m/...)" and "if ( $test =~ /...)" (without the "m")? (If any?) Thanks in advance, -K -- Kevin Pfeiffer <[EMAIL PROTECTED]> -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]