develooper Front page | perl.perl5.porters | Postings from April 2000

what is this doing, and what are the implications?

Thread Next
From:
Jeff Pinyan
Date:
April 14, 2000 09:22
Subject:
what is this doing, and what are the implications?
Message ID:
Pine.GSO.4.21.0004141220250.16448-100000@crusoe.crusoe.net
#!/usr/bin/perl -w

use strict;

@main:: = ("foo","bar","blat");
for $main:: (0 .. $#main::) {
  print $main::[$main::];
}

-- 
MIDN 4/C PINYAN, NROTCURPI, US Naval Reserve             japhy@pobox.com
http://www.pobox.com/~japhy/                  http://pinyaj.stu.rpi.edu/
PerlMonth - An Online Perl Magazine            http://www.perlmonth.com/
The Perl Archive - Articles, Forums, etc.    http://www.perlarchive.com/


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About