Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.75 KB | None | 0 0
  1. $q->header(-cookie=>$newcook);
  2.  
  3. print " <h1>Welcome $cuser</h1>\n";
  4.  
  5. open(books, "$file")|| die("Could not open b.txt");
  6. $bookarray=<books>;
  7. close(books);
  8. print " <h1>$bookarray</h1>\n";
  9.  
  10.  
  11. print " <h1>next</h1>\n";
  12. @splitaray = split(/\|/, $bookarray, LIMIT);
  13. print " <h1>@splitarray</h1>\n";
  14.  
  15.  
  16.  
  17. print " <table width=\"250\" border=\"2\">\n";
  18. print " <tr>\n";
  19. print "   <td>\n";
  20.    
  21.    
  22.    
  23. print " <table width=\"250\" border=\"2\">\n";
  24.      
  25.      
  26.      foreach $thing (@splitarray) {
  27. print     "<tr><td>$thing</td></tr>\n\n";
  28.      
  29.       }
  30.  
  31. print "    </table>\n";
  32.    
  33.    
  34.    
  35. print "    </td>\n";
  36. print "   <td>\n";
  37.    
  38.    
  39. #######################
  40.    
  41.    
  42.    
  43.  print "   </td>\n";
  44.  print " </tr>\n";
  45. print "</table>\n";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement