Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Right now, the output is:#!/usr/misc/bin/perl5 -w use strict; my $blahblah = 5; my $ref_to_blahblah = \$blahblah; print "$$ref_to_blahblah\n"; fubar($ref_to_blahblah); print "$$ref_to_blahblah\n"; sub fubar { $$_[0] = 4; print "$$_[0]\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Passing pointers around
by extremely (Priest) on Jan 15, 2001 at 02:37 UTC | |
|
Re: Passing pointers around
by a (Friar) on Jan 15, 2001 at 11:24 UTC | |
|
Re: Passing pointers around
by repson (Chaplain) on Jan 15, 2001 at 07:03 UTC |