At 12:10 AM +0800 2/18/12, lina wrote:

What's the $_ and $@

They are built-in global variables. $_ is the default variable for many Perl operations. $@ is the syntax error message from the last eval (why are you asking about $@; it doesn't appear in your program?).

I can guess about its usage, but don't get why use _ or @ here?.

They are the names of the variables.

See 'perldoc perlvar'


BTW, what's the significant advantage perl exceed the other languages
(it shares lots of similarity with bash and sed),

Perl has superb text-handling facilities, automatic memory allocation, auto-vivication of complex, nested data structures, and easy-to-use associated arrays (hashes), among its many advantages.

Just curious,
such as for which problems or under which situation you would consider
trying perl.

I would use Perl for any program not requiring a graphical user interface or the use of special libraries.

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to