my $line = $_; if($line =~ s/^.+\/\.(.*)$/$1/) { print ". extension $line\n"; } elsif ( $line =~ s/^.+\.(.*)$/$1/) { print "Extension $line\n"; }
Note that no interpolation takes place inside single-quoted strings.
Cheers,
JohnGG
In reply to Re: messing up $line?
by johngg
in thread messing up $line?
by perlNinny
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |