
Laurent_R
Enthusiast
Dec 30, 2012, 10:42 AM
Views: 2064
|
|
Re: [Stefanik] Match string in multi-line file
|
|
|
You have two errors on this line: First, you should use "my" to declare $FileTemp as a lexical (local) variable. Second, you forgot the closing semi-colon at the end. So it should be: Once you have this correct, you no longer need the awkward "$main::" to prefix $FileTemp of your last attempt. (Note: my comments are not really on your last post, but rather on the previous one. In the last post, you commented out important lines so that you are even further away from an actual solution.)
(This post was edited by Laurent_R on Dec 30, 2012, 10:45 AM)
|