Networking Forums

Networking Forums > Computer Networking > Linux Networking > Perl

Reply
 
 
Jenda Mudron
Guest
Posts: n/a

 
      08-01-2005, 06:27 AM
I have the following code

#!/usr/bin/perl -w

use CGI;
CGI::ReadParse(*in);

print "Content-type:text/html\n\n";
print "Adding <font color=red><p>$in{email}<p></font>to your blacklist";

The results come out in one line with blocks in between. how do I subsitute
the blocks into new lines ?


 
Reply With Quote
 
 
 
 
Lawrence D¹Oliveiro
Guest
Posts: n/a

 
      08-01-2005, 08:16 AM
In article <dckfbb$ued$(E-Mail Removed)>,
"Jenda Mudron" <(E-Mail Removed)> wrote:

>I have the following code
>
>#!/usr/bin/perl -w
>
>use CGI;
>CGI::ReadParse(*in);
>
>print "Content-type:text/html\n\n";
>print "Adding <font color=red><p>$in{email}<p></font>to your blacklist";
>
>The results come out in one line with blocks in between. how do I subsitute
>the blocks into new lines ?


Try using s///
 
Reply With Quote
 
SEND NO SPAM
Guest
Posts: n/a

 
      08-01-2005, 10:00 AM
What does this have to do with Linux networking
Try a perl news group

Jenda Mudron wrote:
> I have the following code
>
> #!/usr/bin/perl -w
>
> use CGI;
> CGI::ReadParse(*in);
>
> print "Content-type:text/html\n\n";
> print "Adding <font color=red><p>$in{email}<p></font>to your blacklist";
>
> The results come out in one line with blocks in between. how do I subsitute
> the blocks into new lines ?
>
>

 
Reply With Quote
 
Brian Wakem
Guest
Posts: n/a

 
      08-01-2005, 12:54 PM
Jenda Mudron wrote:

> I have the following code
>
> #!/usr/bin/perl -w
>
> use CGI;
> CGI::ReadParse(*in);
>
> print "Content-type:text/html\n\n";
> print "Adding <font color=red><p>$in{email}<p></font>to your blacklist";
>
> The results come out in one line with blocks in between. how do I
> subsitute the blocks into new lines ?



What are blocks? This is not a Perl newsgroup, try posting in
comp.lang.perl.misc with a better description of your problem.


--
Brian Wakem
Email: http://homepage.ntlworld.com/b.wakem/myemail.png
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't use perl to SMTP to google Earie Linux Networking 3 03-06-2012 04:33 PM
USEFUL perl SCRIPT: NTP verifier Ignoramus5390 Linux Networking 23 01-15-2008 04:39 PM
Perl Jenda Mudron Linux Networking 1 07-29-2005 08:00 PM
Active Perl Overflow spamfrog Home Networking 0 01-05-2005 07:22 PM
nat table and perl problem bjohnsme Linux Networking 1 08-12-2004 03:00 PM



1 2 3 4 5 6 7 8 9 10 11