Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: script not working

by karlgoethebier (Priest)
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 chilling in the Monastery: (8)
As of 2014-12-25 00:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (159 votes), past polls