Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: script not working

by karlgoethebier (Vicar)
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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (17)
As of 2015-07-07 17:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (92 votes), past polls