On Mon, 03 Apr 2017 15:52:59 -0700, SSC_perl wrote: > Reading http://perldoc.perl.org/perlreftut.html I see it’s possible to > create a scalar reference. What situation would require someone to > create a reference to a scalar? I thought refs were only useful for > passing complex data structures. Is it just because Perl lets you, or > is there a reason I’m not aware of? It seems like it would just be > redundant.
They can make handy objects, whivh have to be references, but if you're making an inside-out object which doesn't contain its own attributes, you want something light and immutable. -- Peter Scott http://www.perlmedic.com/ http://www.perldebugged.com/ http://www.informit.com/store/product.aspx?isbn=9780133036268 -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/