Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Regexp question on combining white spaces and comparisons

by ww (Archbishop)
on May 16, 2015 at 22:30 UTC ( [id://1126872]=note: print w/replies, xml ) Need Help??


in reply to Regexp question on combining white spaces and comparisons

Ln8: print "my fpc of intf is $fpc[0]\n";

If you have not declared @fpc outside the foreach (beginning at Ln3) it's going to change with each iteration because the array gets overwritten each time thru the loop; if you have declared it outside the loop it won't change.

The absence of a my @fpc declaration in what you've shown us suggests either that you're not using strict (hint, hint -- usually a very good idea) or that you've declared the array in code you haven't shown. Neither of those possibilities makes it easy to be confident that any particular observation will help you.

So, as others have advised (or hinted) above, you need to clarify your exposition... or your thinking.


check Ln42!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2024-04-19 06:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found