Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^3: Extracting string from a file

by Bindo (Acolyte)
on Nov 20, 2013 at 05:15 UTC ( #1063442=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Extracting string from a file
in thread Extracting string from a file

Sir can you please go through my latest reply at the end of the thread and advice? For some reason no one is replying. thanks.


Comment on Re^3: Extracting string from a file
Re^4: Extracting string from a file
by ww (Bishop) on Nov 20, 2013 at 13:18 UTC

    The "reason(s)" you're getting no replies may include:

    1. The tread has grown elderly (and deeper than the max depth to which some Monks read).
    2. The latest code you've posted shows little evidence that you've worked to understand and implement prior replies.
    3. The form of your question amounts to a 'gimme', AKA, a 'do it for me' which is not an approach approved here.

    Still, in the spirit of 'help, but don't do the (whole) job':

    • Your use of while is not doing what you want. See perldoc -f while (which refers you to a specific section of perlsyn, a document available on your own computer) and compare to the docs re for.
      open (my $FH, '<', "bindo1061990A.txt") || die "Cannot open bindo10619 +90A,txt: $!"; my @lines = <$FH>; for my $line (@lines) { say $line; }
    • Your foreach (@DUMP) { at Ln 10 should NOT be inside the loops beginning at Lns 6 and 7 as that will produce repetitive output for each (new) match.

    I hope this helps... and also clarfies that the saying "Heaven helps those who help themselves" can be paraphrased to apply here.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (11)
As of 2014-09-02 21:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (29 votes), past polls