in reply to Re^2: undefined subroutine
in thread undefined subroutine
Sure. I don't know what you've done to your script, but here's one which runs to completion and gives no such error message.
#!/usr/bin/env perl use strict; use warnings; use YAML qw/LoadFile/; open my $fh, '<', '/dev/null'; my $config = LoadFile ($fh);
Examine this code and compare it to your code. Start altering this code one line at a time to make it ever closer to your code, running it after each addition. If you hit a problem you will then know precisely which change caused the problem.
|
|---|