in reply to s/// question
If you are losing carriage returns, check that they have not been chomped from string contained in $regel.
If you are generating HTML then you will need to change the substitution to add the <br> tag e.g.
$regel =~ s/Username/<br>\nGebruikersnaam/sgm;
#! /usr/bin/perl -w use strict; use warnings; undef $/; my $regel = <DATA>; $regel =~ s/Username/\nGebruikersnaam/sgm; print "start\n"; print "$regel"; print "end\n"; __DATA__ Username=Joe Smith Username=Jane DoeGives you:
start Gebruikersnaam=Joe Smith Gebruikersnaam=Jane Doe endInman
- Comment on Re: s/// question
- Download Code