Guest User

Untitled

a guest
May 29th, 2026
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 6 0.42 KB | None | 0 0
  1. my @lines =
  2.    
  3. Q|Given$a$text$file$of$many$lines,$where$fields$within$a$line$
  4. are$delineated$by$a$single$'dollar'$character,$write$a$program
  5. that$aligns$each$column$of$fields$by$ensuring$that$words$in$each$
  6. column$are$separated$by$at$least$one$space.
  7. Further,$allow$for$each$word$in$a$column$to$be$either$left$
  8. justified,$right$justified,$or$center$justified$within$its$column.
  9. |.lines;
  10.  
  11. for @lines { .split('$'); }
Advertisement
Add Comment
Please, Sign In to add comment