Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Re: Regex Strikes again!by nofernandes (Beadle) |
on Jul 16, 2003 at 14:34 UTC ( [id://274838]=note: print w/replies, xml ) | Need Help?? |
Thank you very much for your help! Your code works fine with the variable.. but when i try to read a file, the number of the lines are wrong! For example if i put the content of your variable $sluperdfile and add only one line such as //Hello:
And now the source code:
How can i grab the line numbers correctly! What variable should i put instead of $slurpedfile? According that i want to read directly from a file? And another issue.. Is it possible to the output be something like this:
Instead of:
Thank you.. for your help... Nuno
In Section
Seekers of Perl Wisdom
|
|