in reply to How to avoid "Use of uninitialized value" with printf?
# open(POLICY, "getpol -t UACS |"); commented - replaced by __DATA_ +_ for this example my $pol; while (<DATA>) # ($pol = <POLICY>) <== could this be changed to wh +ile (my $pol = <POLICY>), to remove the previous line ?? { ... } ...
Yes, you have the correct syntax, for getting a line from the file handle, in the comment above.
|
|---|