GetDotted Domains

Viewing Thread:
"Can anyone help me with some Perl?"

The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.

Fri 10/01/03 at 12:05
Regular
Posts: 787
Just a quick question.....

I have put a "Guestbook" on my site which appends to a php file using a Perl script.

The problem that I am having is that when a user enters text and puts in a paragraph, the carriage return is ignored when it is written to the file.

Obviously, this is a basic guestbook so all I want to be able to do is put in a little bit of code that substitutes all the carriage returns with a "
" tag.

I want to be able to search through all the array looking for the carriage returns which are ASCII 13, I think.....

Can anyone give me any clues?

Hope this makes sense! ;-)
Sat 11/01/03 at 19:30
Regular
"Eff, you see, kay?"
Posts: 14,156
No problem.
Sat 11/01/03 at 19:25
Regular
"Kill all Hippies"
Posts: 437
Cheers Turbonutter, works a treat (had to remove the inverted commas though).
Fri 10/01/03 at 14:58
Regular
"Eff, you see, kay?"
Posts: 14,156
$input =~ s/\n/"
"/g;
Fri 10/01/03 at 12:05
Regular
"Kill all Hippies"
Posts: 437
Just a quick question.....

I have put a "Guestbook" on my site which appends to a php file using a Perl script.

The problem that I am having is that when a user enters text and puts in a paragraph, the carriage return is ignored when it is written to the file.

Obviously, this is a basic guestbook so all I want to be able to do is put in a little bit of code that substitutes all the carriage returns with a "
" tag.

I want to be able to search through all the array looking for the carriage returns which are ASCII 13, I think.....

Can anyone give me any clues?

Hope this makes sense! ;-)

Freeola & GetDotted are rated 5 Stars

Check out some of our customer reviews below:

Easy and free service!
I think it's fab that you provide an easy-to-follow service, and even better that it's free...!
Cerrie
Top-notch internet service
Excellent internet service and customer service. Top-notch in replying to my comments.
Duncan

View More Reviews

Need some help? Give us a call on 01376 55 60 60

Go to Support Centre

It appears you are using an old browser, as such, some parts of the Freeola and Getdotted site will not work as intended. Using the latest version of your browser, or another browser such as Google Chrome, Mozilla Firefox, or Opera will provide a better, safer browsing experience for you.