Re: Perl and Arrays

2002-12-22 Thread Johnstone, Colin
bject: Re: Perl and arrays "John W. Krahn" wrote: > > #!/usr/bin/perl -w > use strict; > use CGI qw/:standard/; > > print header; > > my @arrayStuff = ( > { OutFile => 'albu.htm', > PageId => '3.4.1.5.1&

Re: Perl and arrays

2002-12-20 Thread John W. Krahn
"John W. Krahn" wrote: > > #!/usr/bin/perl -w > use strict; > use CGI qw/:standard/; > > print header; > > my @arrayStuff = ( > { OutFile => 'albu.htm', > PageId => '3.4.1.5.1', > Menu=> 'albu_menu.inc', > Content => 'albu.inc' > }, > { OutFile => 'armi.php', >

Re: Perl and arrays

2002-12-20 Thread John W. Krahn
Colin Johnstone wrote: > > Gidday all, Hello, > I want to create an array and then remove elemnets one at a time and split on the >comma. > > I've tried this with no success.. > > #!/usr/bin/perl -w > > print "Content-Type: text/html\n\n"; > > my @arrayStuff; > > $arrayStuff[0] = "albu.htm

RE: Perl and arrays

2002-12-20 Thread Johnstone, Colin
er 20, 2002 21:12 To: [EMAIL PROTECTED]; Johnstone, Colin Cc: '[EMAIL PROTECTED]' Subject: Re: Perl and arrays just one mistake in the code Your elements are comma seperated and you are doing @data = split( /\t/, $element); do a @data = split( /,/, $element); - Ram Colin

Re: Perl and arrays

2002-12-20 Thread Ramprasad
just one mistake in the code Your elements are comma seperated and you are doing @data = split( /\t/, $element); do a @data = split( /,/, $element); - Ram Colin Johnstone wrote: Gidday all, I want to create an array and then remove elemnets one at a time and split on the comma. I've t