Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re: script not working

by karlgoethebier (Parson)
on Dec 28, 2012 at 09:11 UTC ( #1010675=note: print w/ replies, xml ) Need Help??

in reply to script not working

Why not doing it like this:

#!/usr/bin/perl use strict; use warnings; use IO::All; use autodie qw(:all); my $file = io shift; print $file->[1] =~ m/(.{5})/; __END__

Short, nice, doesn't matter how big the file is...

See IO::All and Tie::File

Regards, Karl

«The Crux of the Biscuit is the Apostrophe»

Comment on Re: script not working
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2015-11-29 11:12 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (750 votes), past polls