Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re^2: Conditional use of Win32::TieRegistry

by hilitai (Monk)
on Nov 13, 2017 at 19:15 UTC ( #1203285=note: print w/replies, xml ) Need Help??

in reply to Re: Conditional use of Win32::TieRegistry
in thread Conditional use of Win32::TieRegistry

Works for Windows, fails on Linux:

Too few arguments to `use if' (some code returning an empty list in list context?) at /usr/lib/perl5/5.10.0/ line 7.

Replies are listed 'Best First'.
Re^3: Conditional use of Win32::TieRegistry
by 1nickt (Abbot) on Nov 13, 2017 at 20:56 UTC

    Sorry, missed quoting the module (necessary if no args provided, like use if CONDITION, MODULE => ARGUMENTS;)

    Should be:

    use if $^O =~ 'MSWin32', 'Win32::TieRegistry';
    ... but I'm sure you saw that in the doc I linked to, right?

    The way forward always starts with a minimal test.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (4)
As of 2021-05-11 21:54 GMT
Find Nodes?
    Voting Booth?
    Perl 7 will be out ...

    Results (123 votes). Check out past polls.