[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Backup and Incremental Backup Perl Scripts

From: Wanja Chresta <wanja.chresta_at_gmail.com>
Date: 2005-05-24 11:23:34 CEST

Hi Trystan

shift takes the first item of an Array (a List) and returns it.
Its like push and pop on registers but on the begin of the list.

If you don't give any argument to shift it will use @ARGV (or @_ in a
subroutine).
So you _can_ omit the @ARGV if you want to:

my $var1 = shift;
my $var2 = shift;
or
my ($var1, $var2) = @ARGV;

Also take a look at:
$ perldoc -f shift

HTH

Wanja

2005/5/24, Hughes, Trystan <Trystan.Hughes@assetco.com>:
> Also, why have you used the 'shift' keyword for?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue May 24 11:26:20 2005

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.