Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: printing 20 characters in a line.

by cdarke (Prior)
on Nov 14, 2008 at 08:52 UTC ( [id://723591]=note: print w/replies, xml ) Need Help??


in reply to printing 20 characters in a line.

You might consider format for this:
open (OUT,">format.out"); my @array=grep /\d+/,split(/ /,$str); my $output = "@array"; write OUT; close OUT; format OUT = ^<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<~~ $output .

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://723591]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2024-03-28 22:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found