CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner: Re: [Peter] Manipulating the printing of array elements: Edit Log



BillKSmith
Veteran

Mar 24, 2016, 12:10 PM


Views: 2350
Re: [Peter] Manipulating the printing of array elements


Code
    print '<p>',substr( $string1, $offset, $length), '</p>', "\n";  
print '<p>, substr( $string2, $offset, $length), '</p>', "\n";
print "<p> </p>\n";


This will not look quite like the standard output. "<p>...</p>" is not the same as a newline. Your browser probably defaults to a proportional font.
Good Luck,
Bill

(This post was edited by BillKSmith on Mar 24, 2016, 2:47 PM)


Edit Log:
Post edited by BillKSmith (Veteran) on Mar 24, 2016, 2:47 PM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives