Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Matching the author and post date of an article

by Alex the Serb (Monk)
on Dec 26, 2001 at 13:59 UTC ( [id://134371]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://134371]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2024-04-19 05:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found