in reply to Bulk Hash Assignment
schlep(\%other_foo_bucket => $big_foo_bucket, qw[ camshaft camshaft gearbox1 gearbox the_drivetrain drivetrain my_smokestack smokestack _junkyard junkyard ]);
Rather than qw[] you could use a heredoc and have your routine do the splitting. Then you could have:
schlep(\%other_foo_bucket => $big_foo_bucket, <<EOT ); camshaft camshaft gearbox1 gearbox the_drivetrain drivetrain my_smokestack smokestack _junkyard junkyard EOT
I want to say this is mentioned somewhere in the camel, maybe not for this exact problem but for something similar.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Bulk Hash Assignment
by tadman (Prior) on Apr 17, 2002 at 20:38 UTC |