iLTC Home
Bookmark iLTC!
iLTC Google Boards

Categories

Perl
  • Perl Tutorials Beginners

    Javascript
  • Javascript Tutorials
  • Javascript Tutorials Beginners

    HTML
  • HTML Tutorials



  • iLoveTheCode.com
    Perl > Perl Tutorials How To Easy > Undefine an Array in Perl

    Undefine an Array in Perl



    To undefine an array in Perl:

    @jiji=("Hi","Hello","Hiya");

    undef(@jiji);

    -We create an array named jiji because typing jiji is easy. (Arrays start with @)
    -We undefine @jiji with Perl's built-in undef function.

    NOTE: You might think: why not just say @jiji=""; But that will not truly clear the array. When you put items back into that array, you will have an extra item at the beginning.



    Copy and Paste Perl Code:

    #!/usr/bin/perl

    print "Content-type:text/html\n\n";

    @jiji=("Hi","Hello","Hiya");

    undef(@jiji);

    print @jiji;

    exit;



    Resources:
    Create or Put Items into an Array in Perl
    Splitting an ARRAY in Perl


    Click HERE to comment or discuss at iLoveTheCode GOOGLE Group
    Previous Article: Get the Length of a Word or String in Perl
    Next Article: Create or Put Items into an Array in Perl





    Beginning Joomla!Beginning Joomla!

    Dan Rahmel

    New $29.69

    Head First AjaxHead First Ajax

    Rebecca Riordan

    New $29.69

    Dreamweaver CS3Dreamweaver CS3

    David McFarland

    New $29.69

    Information Architecture...Information Architecture for the Wor...

    Louis Rosenfeld, P...

    New $26.39

    HTML, XHTML, and CSS All...HTML, XHTML, and CSS All-in-One Desk...

    Andy Harris, Chris...

    New $23.09

    Struts 2 in ActionStruts 2 in Action

    Don Brown, Chad Da...

    New $29.69

    CSSCSS

    Eric Meyer

    New $29.69

    CSSCSS

    David McFarland

    New $23.09

    jQuery in ActionjQuery in Action

    Bear Bibeault, Yeh...

    New $26.39


    Of Interest:
  • Passing a Variable or Value to a Subroutine in Perl
  • Getting What is Matched in Perl
  • Opening and Reading a Directory in Perl
  • Add to the Beginning of an Array with Unshift in Perl
  • Make Text Blink Using Javascript
  • Use onMouseOut in Javascript
  • Call your Function in Javascript
  • Reading Cookies using Javascript
  • HTML Color Chart
  • HTML Superscript Text
  • HTML Subscript Text
  • Make Strikethrough Text Using HTML

  • More Articles:
  • Use chmod in Perl
  • Getting Server Time in Perl
  • To Sort an Array in Perl
  • If, Elsif, and Else in Perl
  • onClick Javascript
  • Setting a Cookie using Javascript
  • Match with a Regular Expression, REGEX, in Javascript
  • Environmental Variables Available in Javascript using Navigator Object
  • Opening an Alert Box in Javascript
  • HTML Tags
  • HTML Forms
  • HTML Body Tag
  • HTML Tables

  • Search iLTC w/ Google





    Recent Articles

  • Javascript Focus Form Field
  • Javascript Lowercase Text
  • Javascript Uppercase Text
  • Javascript Superscript Text
  • Javascript Subscript Text
  • Make Text Blink Using Javascript
  • Make a String into a Link in Javascript
  • Javascript Italics Text
  • Javascript Bold Text
  • Javascript Redirect
  • HTML Frames
  • HTML Color Chart
  • HTML Link
  • Javascript Status Bar








  • Perl Programming - Javascript Programming - Maybe Some PHP - Free Scripts - ILoveTheCode
    All Content © 2006 iLoveTheCode.com


    Contact Chris | About this Site


    581,196
    Counter by iLoveTheCode.com


    Last Modified: Friday, 23-Jun-2006 07:23:17 EDT