The rule sounds familiar :)#!/usr/bin/perl -- use strict; use warnings; my $one = "hi "; my $two = \$one; $_ .= "there " for $one; $$two .= "buddy "; $two = "bye "; print "one=$one\ntwo=$two\n"; __END__ one=hi there buddy two=bye
In reply to Re: Magical data modification using $_
by Anonymous Monk
in thread Magical data modification using $_
by Sewi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |