Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Reading "slices" out of a file at known start markers

by dragonchild (Archbishop)
on Oct 03, 2008 at 13:30 UTC ( #715192=note: print w/replies, xml ) Need Help??


in reply to Reading "slices" out of a file at known start markers

I'm appalled at everyone who answered. You're not the first to have wanted to do this. Makefile::Parser is on CPAN. If it doesn't do everything you need, it at least has the beginnings and (presumably) a test suite so that you can extend it.

My criteria for good software:
  1. Does it work?
  2. Can someone else come in, make a change, and be reasonably certain no bugs were introduced?
  • Comment on Re: Reading "slices" out of a file at known start markers

Replies are listed 'Best First'.
Re^2: Reading "slices" out of a file at known start markers
by Zen (Deacon) on Oct 03, 2008 at 14:32 UTC
    TIMTOWTDI. I personally enjoyed reading all of these techniques.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://715192]
help
Chatterbox?
choroba's discovered two instances of a weird animal in the code at work: \@$var
[Eily]: hum, tied scalar, generates a new array when derefed ? :D
[Corion]: choroba: Ah, when doing a shallow copy, I prefer [ @$var ] - I think \@$var might return the same reference instead of a reference to a fresh copy
[Corion]: perl -wle "my $ar = [1,2,3]; my $br=\@$ar; print qq($ar / $br)" confirms this to me
[karlgoethebier]: "discovered" this to sum an array: perl -E 'say scalar map {1 .. $_} (1..3);'

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (10)
As of 2017-09-26 08:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (293 votes). Check out past polls.

    Notices?