Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
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 exploiting the Monastery: (5)
As of 2018-05-26 10:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?