in reply to Re^2: Assistance fixing a "format" call
in thread Assistance fixing a "format" call
If you have a single file that you use, use a __DATA__ segment for that data. That file handle is already "open" and you can access it: while(<DATA>){..}.
I actually ran the code that I gave you and I know that it at least runs on my machine. Please give us the same in return.
If some code is not working, give us the exact code (preferably something that we can run easily) and the exact error message - don't give us the short explanation like you'd give your 35th cousin in Chickenblister, Wyoming where-ever the heck that is! Get down and dirty with the details!
If you look at my first answer to your post, you will see that it is a complete runnable program, including a __DATA__ segment. This "=" in column one (eg =prints) is a "trick" - its actually a use of POD - Plain Old Documentation. I often use that in Monk posts so that I can put some comments (like the actual program output) in the code without interfering with the program or its __DATA__ segment. For code without a __DATA__ segment, you can just put __END__ and all after that are just comments (doesn't matter to Perl).
Having said that, welcome to Monks!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Assistance fixing a "format" call
by bobdabuilda (Beadle) on Apr 02, 2012 at 23:09 UTC | |
by Marshall (Canon) on Apr 04, 2012 at 03:47 UTC |