hi,thanks for the answer. i wasnt able to apply what you wrote. i tried what you wrote and debbugged it with ptkdb,it seems the file is reopened, but on reading from it with $buff=<new_handle_same_file> it seems $buff is undef over and over again. about it beeing useful ... i dunno , its just an exercice randal schwartz's book learning perl , actually its from chapter 9 exercice 5,that goes with the 4th edition that i own of the book. ok...i managed to surpass the problem ,not even reading the file the 2nd time as i was planning to,and making it like this http://perlhobby.googlecode.com/svn/trunk/scripturi_perl_teste/prob_leraning_perl/p9_5.pl it seems next magically jumps the line on wich the text to be checked in the file is supposed to be and thats how i get over the problem. i would be very interested to see how one could jump to the next FILE the diamond operator is processing, that would optimize the solution much better.


In reply to Re^2: diamond operator current filename by spx2
in thread diamond operator current filename by spx2

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.