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: [1arryb] Problem with executing shell commands in perl: Edit Log



shawnhcorey
Enthusiast


Jul 6, 2009, 12:34 PM


Views: 1247
Re: [1arryb] Problem with executing shell commands in perl


In Reply To
Heh. One of my standard questions when interviewing applicants for Perl programmer positions is, "What do curly braces ('{}') mean in Perl?" There are, in fact, 5 meanings.

UPDATE: Anyone who gets more than 3 is an immediate hire!


Well, I thought up of four, so I guess my reputation is safe. Undoubtedly the last will come to me tonight just before I fall asleep and keep me awake for hours :D

I was thinking of things like:

Code
sub foo { 
my $var = shift;
}
{
my $var = shift;
}

The shift does two different things.

UPDATE: I just thought of the last. Thank the Goodness for that. Now I might get some sleep tonight ;)

__END__

I love Perl; it's the only language where you can bless your thingy.

Perl documentation is available at perldoc.perl.org. The list of standard modules and pragmatics is available in perlmodlib.

Get Markup Help. Please note the markup tag of "code".

(This post was edited by shawnhcorey on Jul 6, 2009, 12:54 PM)


Edit Log:
Post edited by shawnhcorey (Enthusiast) on Jul 6, 2009, 12:54 PM


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

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