www.perl.com
Perl Programming
Scalars
  • Dynamically assume whatever value is assigned
    • Scalar is a basic type in Perl
    • Any scalar value can be freely assigned to any scalar variable
    • No need to "cast" or redeclare values

        my $quantity = 6;         # Declare & define
        $quantity = "half dozen"; # Now a string
        $quantity = 0.5 * 12;     # Numeric again
      
Previous http://stuff.mit.edu/iap/perl/