Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: s/// question

by dbwiz (Curate)
on Oct 02, 2003 at 11:29 UTC ( [id://295888]=note: print w/replies, xml ) Need Help??


in reply to s/// question

It looks fine to me.

$regel = "Username; abcd; Username"; $regel =~ s/Username/\nGebruikersnaam/sgm; print "(BEGIN)$regel(END)\n"; __END__ output: (BEGIN) # <-- \n here Gebruikersnaam; abcd; # <-- and \n here Gebruikersnaam(END)

Maybe the problem is in your output routine. Are you producing HTML? If so, a "\n" doesn't have any effect, unless inside <pre> </pre> tags.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://295888]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (7)
As of 2024-04-23 09:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found