Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re^3: print and extract the line

by Hugmeir (Sexton)
on Jul 07, 2010 at 15:37 UTC ( #848490=note: print w/replies, xml ) Need Help??

in reply to Re^2: print and extract the line
in thread print and extract the line

I can't quite make head or tails of your posts, but I'm bored anyhow, so here's my take:

#! /usr/bin/perl -w use strict; die "Not enough arguments" if $#ARGV < 2; my ($start, $end, $file) = @ARGV; open FILE, $file or die "Couldn't open file"; while (<FILE>) { my @chars = split //; print @chars[$start..$end], "\n" if @chars >= $end; }

It's quite a derail, but if someone could point me towards a node with examples or some sort of documentation of autodie, I'd be grateful (my Super Search-fu isn't strong).

Replies are listed 'Best First'.
Re^4: print and extract the line
by ww (Archbishop) on Jul 07, 2010 at 18:25 UTC

    + + for effort & brevity

    Note, however, that this code prints six-character strings, whereas OP's example output (in the narrative) looks for only five.

    As for autodie and your search fu, Super Search doesn't require a whole lot of fu;
    here's the output where the only input was "autodie": ?node_id=3989;BIT=autodie

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://848490]
[erix]: and now you are agnostic?
[james28909]: arunbear, your picking bits of history to fit your own narrative. right now, humans are smarter than in any of those times.
[james28909]: in order for there to be a mutation, there has to be a universe with laws setup that even allow a mutation.
[james28909]: everything past the first two things you piked from my posts are irrelevant to me and my beliefs. they are side effects.
[james28909]: two or three. if it has to do with how humans are handling said situations, then that is after they were able to evolve into those problems. agnostic means only believe with evidence. i took that from a tyson video
[james28909]: and it seems that racism suggest that there is indeed a better race, but that is for evolution to decide
[1nickt]: "right now, humans are smarter than in any of those times": define "smart"
[erix]: ah, now you're appraoch downvote-territory ;)

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (12)
As of 2017-12-15 14:55 GMT
Find Nodes?
    Voting Booth?
    What programming language do you hate the most?

    Results (433 votes). Check out past polls.