Beefy Boxes and Bandwidth Generously Provided by pair Networks Frank
XP is just a number
 
PerlMonks  

nzgrover's scratchpad

by nzgrover (Scribe)
on Dec 15, 2004 at 03:11 UTC ( #414922=scratchpad: print w/ replies, xml ) Need Help??

#!/usr/bin/perl -w use strict; use Data::Dumper; my $aref; print STDERR 'before: ' . Dumper($aref); x($aref); print STDERR 'after func: ' . Dumper($aref); push (@{$aref},'hownow'); print STDERR 'last:' . Dumper($aref); sub x{ my $in = shift; push (@{$in},'whatever'); print STDERR 'infunc:' . Dumper($in); }
produces output
before: $VAR1 = undef; infunc:$VAR1 = [ 'whatever' ]; after func: $VAR1 = undef; last:$VAR1 = [ 'hownow' ];
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (15)
As of 2013-06-19 18:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How many continents have you visited?









    Results (665 votes), past polls