CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner: Re: [mhx] "my $check_str = shift;" what means 'shift': Edit Log



Paul
Enthusiast

Mar 11, 2002, 3:26 AM


Views: 815
Re: [mhx] "my $check_str = shift;" what means 'shift'

and likewise if you are using objects and wish to get rid of $self you can do:

my $check_str = pop;

....to get the last element (if only two args are passed)....or....

shift;
my $arg = shift;


(This post was edited by RedRum on Mar 11, 2002, 3:27 AM)


Edit Log:
Post edited by Paul (Enthusiast) on Mar 11, 2002, 3:27 AM
Post edited by Paul (Enthusiast) on Mar 11, 2002, 3:27 AM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives