Trudge has asked for the wisdom of the Perl Monks concerning the following question:
which shows memy $PipeCounter=0; # how many? my $Lookfor="|"; while(<DATA>) { $PipeCounter = () = $_ =~ /\Q$Lookfor/g; } print "Found $PipeCounter '$Lookfor'\n";
Sample DATA:Running Sanitize on DATA ... Found 5 '|'
Anyone shed some light on this please?2015|Art Of Computer Programming - Volume 4 Fascicle 6 Satisfiablility + (The)|Art Of Computer Programming - Volume 4 Fascicle 6 Satisfiablil +ity (The).pdf|Knuth,Donald E.|Programming;Reference|The never-ending +story .. this book has been decades in the making. Three volumes were + available for years but the master himself has added this addition t +o Chap. 7 'Combinatorial Searching'. 2010|Art Of Photography (The)|Art Of Photography (The).pdf|Barnbaum,Br +uce|Photography|A successful photograph does one of several things. I +t allows, or forces, the viewer to see something that he has looked a +t many times without really seeing; it shows him something he has nev +er previously encountered; or, it raises questions - perhaps ambiguou +s or unanswerable - that create mysteries, doubts, or uncertainties. +In other words, it expands our vision and our thoughts. It extends ou +r horizons. It evokes awe, wonder, amusement, compassion, horror, or +any of a thousand responses. It sheds new light on our world, raises +questions about our world, or creates its own world. 1994|Art Of Woodworking Sharpening And Tool Care (The)|Art Of Woodwork +ing Sharpening And Tool Care (The).pdf|Time-Life Books|Woodworking To +ols|Whether you're using a chisel or a router or a lathe, you know th +at a sharp tool is critical to doing a good job. It's also safer - a +dull tool requires more force, and more force = less control. This bo +ok covers the proper techniques for sharpening all manner of your woo +dworking tools - hand tools, power tool blades and bits, portable pow +er tools, and stationary power tools. Detailed photographs and illust +rations with excellent descriptions and instructions. 2017|Art and Craft of Problem Solving 3E (The)|Art and Craft of Proble +m Solving 3E (The).pdf|Zeitz,Paul|Mathematics;Logic;Calculus|This is +a book about mathematical problem solving for college-level novices. +By this I mean bright people who know some mathematics (ideally, at l +east some calculus), who enjoy mathematics, who have at least a vague + notion of proof, but who have spent most of their time doing exercis +es rather than problems.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Count number of characters in a DATA block
by choroba (Cardinal) on Sep 04, 2022 at 17:56 UTC | |
by Trudge (Acolyte) on Sep 04, 2022 at 18:10 UTC | |
|
Re: Count number of characters in a DATA block
by kcott (Archbishop) on Sep 05, 2022 at 04:16 UTC | |
by eyepopslikeamosquito (Archbishop) on Sep 05, 2022 at 06:32 UTC | |
by kcott (Archbishop) on Sep 05, 2022 at 15:04 UTC | |
|
Re: Count number of characters in a DATA block
by GrandFather (Saint) on Sep 05, 2022 at 21:46 UTC | |
|
Re: Count number of characters in a DATA block
by Anonymous Monk on Sep 05, 2022 at 12:43 UTC | |
by eyepopslikeamosquito (Archbishop) on Sep 06, 2022 at 02:24 UTC |