dev2000 has asked for the wisdom of the Perl Monks concerning the following question:
I see "shift" used all over in examples, but I don't know why. What exactly does it do?my $r = shift; $r->send_http_header('text/plain'); $r->print("mod_perl rules!\n");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: what does shift do?
by mt2k (Hermit) on May 19, 2002 at 20:21 UTC | |
|
Re: what does shift do?
by cjf (Parson) on May 19, 2002 at 20:07 UTC | |
|
Re: what does shift do?
by dmmiller2k (Chaplain) on May 19, 2002 at 20:27 UTC | |
by dev2000 (Sexton) on May 19, 2002 at 20:36 UTC | |
by Juerd (Abbot) on May 19, 2002 at 20:48 UTC | |
by dmmiller2k (Chaplain) on May 19, 2002 at 20:41 UTC | |
by Juerd (Abbot) on May 19, 2002 at 20:52 UTC | |
|
Re: what does shift do?
by dev2000 (Sexton) on May 19, 2002 at 21:12 UTC | |
by merlyn (Sage) on May 19, 2002 at 21:54 UTC | |
|
Re: what does shift do?
by hsweet (Pilgrim) on May 20, 2002 at 01:31 UTC |