![]() |
|
Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Use of a global scalarby Grey Fox (Chaplain) |
on Sep 02, 2006 at 21:40 UTC ( [id://570891]=perlquestion: print w/replies, xml ) | Need Help?? |
Grey Fox has asked for the wisdom of the Perl Monks concerning the following question:
Hello Fellow Monks of perl; I'm having difficulties in declaring the $text field as global to the entire program. I've separated the slurp of the file into a separate scope, so that I can read the conversion parameter's line by line. How can I use the same $text that I slurped, in my while statement. What I have is a list of bogus names and clock numbers that I am globally replacing in my text file.
As Bartles & Jaymes would say "Thank you for your support"
-- Grey Fox Perl - Hours to learn lifetime to master. 2006-09-03 Retitled by Arunbear, as per Monastery guidelines
Back to
Seekers of Perl Wisdom
|
|