I ended up having so much trouble with the machine that I started this thread with that I went out and bought another. I was able to test whether I had wifi using perl, as kind of a first useful thing to do with a new windows machine. I'm not done looking at this issue, but I can now test it from another platform as well.

C:\Users\tblaz\Documents\meditations>cd C:\Users\tblaz\Documents\meditations C:\Users\tblaz\Documents\meditations>perl 1.lwp.pl execution here execution there C:\Users\tblaz\Documents\meditations>type 1.lwp.pl #!/usr/bin/perl use 5.016; use warnings; use LWP::Online 'online'; say "execution here"; # "Is the internet working?" die "NO INTARWWEB!!!" unless online(); say "execution there"; __END__ C:\Users\tblaz\Documents\meditations>

This seems to confirm the following.

C:\Users\tblaz\Documents\meditations>netsh interface show interface Admin State State Type Interface Name ---------------------------------------------------------------------- +--- Enabled Connected Dedicated Wi-Fi C:\Users\tblaz\Documents\meditations>
if you r program have to be portable you can have a bounch of modules handling this: X::Y::ConnectionInfo responsible to load X::Y::ConnectionInfo::Linux or X::Y::ConnectionInfo::Win32 based on the OS you are running on.

Can you say a few more words about how to create this namespace?

Again, thx all for comments,


In reply to Re^2: writing a utility to determine whether I have a working wifi connection by Aldebaran
in thread writing a utility to determine whether I have a working wifi connection by Aldebaran

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.