Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Scope of $/

by agarrubio (Novice)
on May 26, 2016 at 23:39 UTC ( #1164246=note: print w/replies, xml ) Need Help??


in reply to Scope of $/

Thanks all!

BillKSmith's method works nicely, However, with NetWallah's, method the altered value of $/ is still visible to the subroutine called inside the main reading loop (reader::firstline).

Reinstateing with local the value of $/ inside the subroutine also works, but I guess it is not a standard precuation in most modules

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1164246]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2018-02-22 05:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When it is dark outside I am happiest to see ...














    Results (288 votes). Check out past polls.

    Notices?