in reply to Re^2: help! Please please help!
in thread help! Please please help!
That's one of the reasons why when I start getting a qw// that's spanning more than 2-ish lines I've taken to changing to using YAML::Syck in a here-doc sort of like this:
use YAML::Syck qw( Load ); my @servers = @{ Load( <<'EOT' ) }; ## Now I can have comments - 213.123.20.134 - 213.123.20.119 - 213.123.20.120 - 213.123.20.121 EOT
If the list grows even longer you can easily move it after your __END__ token and change to my $server_data = do { local $/; <DATA> }; my @servers = @{ Load( $server_data ) };; and it's not a big step from there to swap to a separate data file and use LoadFile instead.
The cake is a lie.
The cake is a lie.
The cake is a lie.
|
|---|