in reply to Matching the author and post date of an article

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

Replies are listed 'Best First'.
Re: Re: Matching the author and post date of an article
by tachyon (Chancellor) on Dec 26, 2001 at 15:36 UTC

    I see you are careful to *fix* the value ot $/ before you finish. A better way is to locally scope the changes to $/ using local - then you don't have to remember to fix it. This goes for all the special vars:

    # make a block and locally scope a var { local $/; # $/ is now undef so glob a file in } # now $/ is back to normal as the changes are scoped to the block abov +e

    Often you have a convenient block to scope within. If not make one as shown above.

    cheers

    tachyon

    s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print

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