What is wrong with this line in a perl script?
$amc_data = `sed -n '/\[Amc\]/,/\[\/Amc\]/p' "$config_file"`
I ran the above from command line and it works fine from unix command prompt.
The code should produce output between the [Amc] and [/Amc] tags.
The config_file is as follows:
[Amc]
Sun 0000-2359
Mon 0000-0859;1830-2359
Tue 0000-2359;1830-2359
Wed 0000-2359;1830-2359
Thu 0000-2359;1830-2359
Fri 0000-2359;1830-2359
Sat 0000-2359
[/Amc]
[Dummy]
Sun 0000-2359
Mon 0000-0859;1830-2359
Tue 0000-2359;1830-2359
Wed 0000-2359;1830-2359
Thu 0000-2359;1830-2359
Fri 0000-2359;1830-2359
Sat 0000-2359
[/Dummy]