View Single Post
Old 06-29-2006   #2 (permalink)
thecubed
Yup, that's meee!
 
thecubed's Avatar
 
Join Date: Jun 2004
Location: Infront of my screen (most of the time)
Posts: 89

Send a message via AIM to thecubed Send a message via Yahoo to thecubed Send a message via Skype™ to thecubed
Nevermind, I (think) I may have figured it out:
on my windows machine the code would be as follows,
Code:
 my $ip = ((`ipconfig`) =~ /IP Address. . . . . . . . . . . . : (\S+)/);
 $ip = $1; 
 print $ip;
I forgot that regular expressions dumped the parsed string into a variable in order of occurrence- $1,$2,etc... - by asking Perl to print $ip in my previous post, I was only getting the execution status of the regular expression.
(Funny how I answered my own question )

Just thought if anyone else was having the same problem, that might help
__________________

www.thecubed.com <--- TheCubed Homepage!
thecubed is offline