PerlElvir
Technical User
- Aug 23, 2005
- 68
I have one question, so I have:
$string1 = "Hello World\n";
my ($var1) = $string1 =~ /H\s*(.*)\s*l/i;
whan I print $var1 I extract "ello Wor" and my question is how I can manipulate with this, because there is 3 times repeat latter "l", but in this case he is take only last? How can I took 1 or 2...?
$string1 = "Hello World\n";
my ($var1) = $string1 =~ /H\s*(.*)\s*l/i;
whan I print $var1 I extract "ello Wor" and my question is how I can manipulate with this, because there is 3 times repeat latter "l", but in this case he is take only last? How can I took 1 or 2...?