[plug] perl objects

Garry garbuck at westnet.com.au
Thu Jun 10 08:55:29 WST 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

William Kenworthy wrote:
| How does one dereference a perl object?  I am in need of a new copy (in
| memory) of an object, so I can modify it without affecting the
| original.  Mental block, I cant believe something so simple is so hard
| to find ...
|
| BillK
|
|
| _______________________________________________
| PLUG discussion list: plug at plug.linux.org.au
| http://mail.plug.linux.org.au/cgi-bin/mailman/listinfo/plug
| Committee e-mail: committee at plug.linux.org.au
|

Quote from camel book p249

"
To dereference anything more complicated than a simple scalar variable
you must use one of the next two methods described below. However
"simple scalars" can include an identifier that itself uses the first
method recursively. Therefore the following prints "howdy":

$refrefref= \\\"howdy";
print $$$$refrefref;

You can think of the dollar signs as executing right to left.

"

Hope this is of use Bill....

Garry




- --




-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAx7GBvdH9DANniC8RAtG1AJ9yxNfs/bZg0DCc5jJRzk29tDv8tACfTZtY
m3U5ewlUUZtKFSGUhSBdZ0c=
=SpL6
-----END PGP SIGNATURE-----



More information about the plug mailing list