Surprised no one has mentioned it, but the complete foundation of Object Oriented Perl is based on the ability to bless a referent into a particular namespace. So obviously once/if you get into OOP references play a major role.
Along these lines is the ability to pass multiple different types of data into and out of subroutines, so that a sub may perform and return different types of actions and data based on what it was given. (perldoc -f ref) http://danconia.org ------------------------------------------------ On Fri, 3 Jan 2003 15:02:09 -0500, "Paul Kraus" <[EMAIL PROTECTED]> wrote: > Ok a couple questions on Ref from pg 251 programming Perl. > > push @$arrrayref,$filename); > $$arrayref[0]="January"; > @$arrayref[4..6]=qw/May June July/; > > So this is actually creating an anonymous array that it then references > correct? > so the assignments January ect are being made to an anonymous array. > > This is cool but maybe I am missing the point. Why would you use these > references rather then just using the actual variable? > If some one could give me some real world applications for this I would > be most appreciative. > > I have seen them used to simulate a multidimensional array as well has > hash and that makes sense. But beyond that I am kind of at a loss. > > Paul Kraus > Network Administrator > PEL Supply Company > 216.267.5775 Voice > 216-267-6176 Fax > www.pelsupply.com > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]