RE: How do you Create an array of a struct?

2007-09-18 Thread Travis Hervey
aid in this! Travis Hervey -Original Message- From: Paul Lalli [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 18, 2007 12:33 PM To: beginners@perl.org Subject: Re: How do you Create an array of a struct? On Sep 18, 10:55 am, [EMAIL PROTECTED] (Travis Hervey) wrote: > How do

Re: How do you Create an array of a struct?

2007-09-18 Thread Paul Lalli
On Sep 18, 10:55 am, [EMAIL PROTECTED] (Travis Hervey) wrote: > How do you Create an array of a struct in perl? You have to be more careful in your phrasing of your question. You're using the Class::Struct module without telling anyone you're using the Class::Struct module,

Re: How do you Create an array of a struct?

2007-09-18 Thread Rob Dixon
Narthring wrote: On Sep 18, 9:55 am, [EMAIL PROTECTED] (Travis Hervey) wrote: How do you Create an array of a struct in perl? Is this even possible in perl? So far I have... struct Carrier_Info => { name=> '$', abbrev => '$' }; ... my

Re: How do you Create an array of a struct?

2007-09-18 Thread Douglas Hunter
Travis Hervey wrote: How do you Create an array of a struct in perl? Is this even possible in perl? Yes, but it's not called a struct in perl. It's typically called a hash reference. `perldoc -q struct` is a good place to look first. After that I would look at `perldoc

Re: How do you Create an array of a struct?

2007-09-18 Thread Rob Dixon
Travis Hervey wrote: How do you Create an array of a struct in perl? Is this even possible in perl? So far I have... struct Carrier_Info => { name=> '$', abbrev => '$' }; ... my @carriers = Carrier_Info->new(); I have tr

Re: How do you Create an array of a struct?

2007-09-18 Thread Narthring
On Sep 18, 9:55 am, [EMAIL PROTECTED] (Travis Hervey) wrote: > How do you Create an array of a struct in perl? Is this even possible > in perl? > > So far I have... > > struct Carrier_Info => { > > name=> '$', > > abbrev => &

Re: How do you Create an array of a struct?

2007-09-18 Thread John W. Krahn
Travis Hervey wrote: From: John W. Krahn [mailto:[EMAIL PROTECTED] Travis Hervey wrote: How do you Create an array of a struct in perl? Is this even possible in perl? So far I have... struct Carrier_Info => { name=> '$', abbrev => '$' }

Re: How do you Create an array of a struct?

2007-09-18 Thread John W. Krahn
Travis Hervey wrote: How do you Create an array of a struct in perl? Is this even possible in perl? So far I have... struct Carrier_Info => { name=> '$', abbrev => '$' }; That looks like a hash so: my %Carrier_Info = ( n

How do you Create an array of a struct?

2007-09-18 Thread Travis Hervey
How do you Create an array of a struct in perl? Is this even possible in perl? So far I have... struct Carrier_Info => { name=> '$', abbrev => '$' }; ... my @carriers = Carrier_Info->new(); I have tried several different

Re: Create an array

2004-01-01 Thread Mike Blezien
Hi Rob, Glad to see I'm not the only one hard at it today ;) Anyway, with a few minor tweaks and your helpfully suggestion below, I got it working perfectly now thanks abunch, much appreciated. Cheers ;-) -- MikeBlezien =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Thunder Rain Internet Publishi

Re: Create an array

2004-01-01 Thread Rob Dixon
Mike Blezien > > a happy new year... but some of us have to work on the holiday ;) > > Got a code here that I need to generate an array so it can be used further down > in the script. Here is the code snip > ### START OF CODE # > my @membership = $cgi->

Create an array

2004-01-01 Thread Mike Blezien
Hello, a happy new year... but some of us have to work on the holiday ;) Got a code here that I need to generate an array so it can be used further down in the script. Here is the code snip ### START OF CODE # my @membership = $cgi->param('membership'

Re: Create an array of arrrays from a scalar

2001-08-07 Thread Abdulaziz Ghuloum
### #!/perl -w use Data::Dumper; use Switch; my $str = <61001A8E5BE9D0119D1E0008C728E0C3227F13@ntusa2>, "Chris Rogers" <[EMAIL PROTECTED]> wrote: > Maybe I'm crazy, but I would like to create an array of arrays from a > single string. Here's an example of

RE: Create an array of arrrays from a scalar

2001-08-07 Thread Mooney Christophe-CMOONEY1
- From: Chris Rogers [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 07, 2001 3:58 PM To: Beginners@Perl. Org (E-mail) Subject: Create an array of arrrays from a scalar Maybe I'm crazy, but I would like to create an array of arrays from a single string. Here's an example of a str

Create an array of arrrays from a scalar

2001-08-07 Thread Chris Rogers
Maybe I'm crazy, but I would like to create an array of arrays from a single string. Here's an example of a string: (("TEXT" "PLAIN" ("format" "flowed") NIL NIL "7BIT" 206 4 NIL NIL NIL)("TEXT" "PLAIN" ("name&qu