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

Re: Not printing the values outside the while loop

by GrandFather (Saint)
on Jun 11, 2021 at 03:36 UTC ( #11133760=note: print w/replies, xml ) Need Help??


in reply to Not printing the values outside the while loop

Each time through the loop you replace the contents of all the variables regardless if matching the relevant text. For input lines that contain less than all the search strings at least some of the variables will be empty.

Optimising for fewest key strokes only makes sense transmitting to Pluto or beyond
  • Comment on Re: Not printing the values outside the while loop

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (2)
As of 2021-10-21 01:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (82 votes). Check out past polls.

    Notices?