Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re^2: -e on windows giving error

by Rudolf (Pilgrim)
on Nov 17, 2011 at 23:17 UTC ( #938700=note: print w/replies, xml ) Need Help??

in reply to Re: -e on windows giving error
in thread -e on windows giving error

well I am using activePerl, and whenever a drive does not exist it causes the popup each time untill it gets to the drive that does exist. and yeah I will loop it haha, thanks I am trying to use SetErrorMode() from Win32API::File but I keep getting the error of undefined subroutine at the function call..

Replies are listed 'Best First'.
Re^3: -e on windows giving error
by Util (Priest) on Nov 17, 2011 at 23:23 UTC
    Either use the fully-qualified name of the function, or import it in the use statement.
    # Either this: use Win32API::File; my $uOldMode = Win32API::File::SetErrorMode( $uNewMode ); # or this: use Win32API::File qw( SetErrorMode ); my $uOldMode = SetErrorMode( $uNewMode );
Re^3: -e on windows giving error
by ikegami (Pope) on Nov 17, 2011 at 23:27 UTC

    I presumed you neither imported SetErrorMode nor used its full name?

    use Win32API::File qw( SetErrorMode SEM_NOOPENFILEERRORBOX ); SetErrorMode( SetErrorMode(0) | SEM_NOOPENFILEERRORBOX );

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://938700]
[LanX]: Bishop LanX starts singing: ♪..♫ I want it all ...♩..♬
LanX ♪..♫ ...and I want it now!!! ♩..♬
[LanX]: damn my headphones were not plugged and the video blasted thru the office ...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (9)
As of 2017-09-20 15:39 GMT
Find Nodes?
    Voting Booth?
    During the recent solar eclipse, I:

    Results (237 votes). Check out past polls.