Forum Discussion

amebiz_142234's avatar
amebiz_142234
Icon for Nimbostratus rankNimbostratus
Jun 20, 2018

switch arguments use argument from a file

it is possible to put the switch arguments in a file?

    switch -glob [HTTP::path] {
        "/foo/*" -
        "/bar/*"
        {
            do something
        }
    }

    switch -glob [HTTP::path] {
        read file
        {
            do something
        }
    }   

    file
    "/foo/*" -
    "/bar/*"