Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^2: Adding an Entire Class B IP Range to an Array

by kelan (Deacon)
on Mar 31, 2005 at 21:08 UTC ( #443975=note: print w/replies, xml ) Need Help??


in reply to Re: Adding an Entire Class B IP Range to an Array
in thread Adding an Entire Class B IP Range to an Array

I thought this might progress the braced expressions together (giving '192.168.1.1', '192.168.2.2', '192.168.3.3', etc.) so I wanted to test it. But when I did, it didn't even do that. Instead it gives:

192.168.1.
192.168.2.
192.168.3.
192.168.4.
192.168.5.
192.168.6.
192.168.7.
192.168.8.
192.168.9.
192.168.10.
192.168.11.
192.168.12.
192.168.13.
192.168.14.
192.168.15.
192.168.16.
192.168.17.
192.168.18.
192.168.19.
192.168.20.
...
Is there a limit to glob expansion? It works as expected if I change 1..254 to 1..6, for example.

  • Comment on Re^2: Adding an Entire Class B IP Range to an Array

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2022-08-18 20:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?