On Mon, Jan 06, 2003 at 03:36:20PM -0800, Bill Moseley wrote: > On Mon, 6 Jan 2003, will trillich wrote: > > my @c = map {s/(.)/$1$1/g; $_} qw(fc0 066 ffc 600 cff 090 ccc 666 fc9 633 cff >096 c9c 090); > > > > under potato, there was no problem. with woody, i've got > > > > "Modification of a read-only value attempted" > > It's because $_ is an alias to the current element in your list, which is > a constant. > > Notice: > > $ perl -le '$x = 3;my @c = map {$_=6; $_} ($a); print $a' > 6
you mean, $a = 3; ... :) > See, $_ is an alias. i can see that -- apparently that changed in perl 5.6 ... -- I use Debian/GNU Linux version 3.0; Linux server 2.2.17 #1 Sun Jun 25 09:24:41 EST 2000 i586 unknown DEBIAN NEWBIE TIP #113 from Sebastiaan <[EMAIL PROTECTED]> : To CHANGE FROM FIXED TO DYNAMIC IP ADDRESS is simple: just edit /etc/network/interfaces and if eth0 is the interface to change, use: iface eth0 inet dhcp That should work. See 'man interfaces' for more information. Also see http://newbieDoc.sourceForge.net/ ... -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]