Re: Loading Scalar Vars with Text - Readability

2004-06-03 Thread Zeus Odin
If "Clause" is literal and the numbers are in numerical order from A to N (where both A and N are known), I would use: my $longlist = join '|', map { "Clause$_" } (1..20); If "Clause" is literal and the numbers are not numerical: my $longlist = join '|', map { "Clause$_" } qw(5 20 3 6 9 11 7 13

RE: Loading Scalar Vars with Text - Readability

2004-06-01 Thread Hanson, Rob
You could do create the string then strip the space. I think there was something in the Perl Cookbook that was similar to this. my $longlist = no_space(

Re: Loading Scalar Vars with Text - Readability

2004-06-01 Thread James Edward Gray II
On Jun 1, 2004, at 2:16 PM, PerlDiscuss - Perl Newsgroups and mailing lists wrote: Hi, Adding Perl to the list of languages... and came across a question of loading vars with very long strings... Actually I am modifiying a prior employee's code and want to make it more readable. currently

Re: Loading Scalar Vars with Text - Readability

2004-06-01 Thread Wiggins d Anconia
> Hi, >Adding Perl to the list of languages... and came across a question of > loading vars with very long strings... > >Actually I am modifiying a prior employee's code and want to make it > more readable. > > currently the code is such: > my $longlist = "Clause1|Clause2|Clause3|Clause4