Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: hiccoughing here documents

by Paladin (Vicar)
on Aug 11, 2017 at 22:00 UTC ( #1197279=note: print w/replies, xml ) Need Help??


in reply to hiccoughing here documents

Perhaps I'm not understanding the question, but what about something like:
my @tables = (200, 201); for my $tab (@tables) { print <<BLOCK; ip rule add fwmark 0x0${tab}/0xffff table ${tab} ip route add default via 172.27.${tab}.1 dev eth1.${tab} table ${tab} BLOCK }

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1197279]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2019-10-18 23:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?