Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- open (DANE3,"< /home/biol19/tekst.txt")
- or die "Nie znaleziono pliku\n" ;
- print "======================================\n" ;
- while (<DANE3>)
- {
- $tekst="$_" ;
- print "$tekst" ;
- # substitution
- if ($tekst =~ /Anna/)
- {
- print "$tekst" ;
- $tekst =~ s/Anna/Joanna/ ;
- print "$tekst" ;}
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement