in reply to Re: How to display first line of each record using the question code
in thread How to display first line of each record using the question code

My problem is I can't get $/="__Data__\n" to work using my code

  • Comment on Re^2: How to display first line of each record using the question code

Replies are listed 'Best First'.
Re^3: How to display first line of each record using the question code
by LanX (Saint) on May 18, 2013 at 17:40 UTC
    > I can't get $/="__Data__\n" to work

    My code works, so yours must be wrong! :)

    Try to trek down the problem by replacing the "code in question" bit by bit.

    Did you use double-quotes?

    Does "\n" really immediately follow "__Data__" in your data?

    Cheers Rolf

    ( addicted to the Perl Programming Language)

    A reply falls below the community's threshold of quality. You may see it by logging in.