Cari di Perl 
    Perl User Manual
Daftar Isi
(Sebelumnya) Internal function used for formatsForce a scalar context (Berikutnya)
Miscellaneous functions

Clear all variables of a given name

Daftar Isi

  • reset EXPR

  • reset

    Generally used in a continue block at the end of a loop to clearvariables and reset ?? searches so that they work again. Theexpression is interpreted as a list of single characters (hyphensallowed for ranges). All variables and arrays beginning with one ofthose letters are reset to their pristine state. If the expression isomitted, one-match searches (?pattern?) are reset to match again. Only resets variables or searches in the current package. Always returns1. Examples:

    1. reset 'X'; # reset all X variables
    2. reset 'a-z'; # reset lower case variables
    3. reset; # just reset ?one-time? searches

    Resetting "A-Z" is not recommended because you'll wipe out your@ARGV and @INC arrays and your %ENV hash. Resets only packagevariables; lexical variables are unaffected, but they clean themselvesup on scope exit anyway, so you'll probably want to use them instead.See my.

 
Source : perldoc.perl.org - Official documentation for the Perl programming language
Site maintained by Jon Allen (JJ)     See the project page for more details
Documentation maintained by the Perl 5 Porters
(Sebelumnya) Internal function used for formatsForce a scalar context (Berikutnya)