Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!uunet!ncrlnk!ncr-mpd!Mike.McManus From: Mike.McManus@FtCollins.NCR.com (Mike McManus) Newsgroups: comp.lang.perl Subject: Substitution shortcut? Message-ID: Date: 6 Sep 90 12:39:49 GMT Sender: uucp@ncr-mpd.FtCollins Distribution: comp Organization: NCR Microelectronic Products, Ft. Collins, CO Lines: 26 If I have something like this: $a = "hello"; $b = $a; $b =~ s/ello/i/; ...is there a "short" way to write this? Something like: $a = "hello"; $b = ($a ~ s/ello/i/); Seems silly to have to say $b = $a first, but if I gotta, so be it. Just curious if I've been missing something. Thanks! -- Disclaimer: All spelling and/or grammar in this document are guaranteed to be correct; any exseptions is the is wurk uv intter-net deemuns,. Mike McManus Mike.McManus@FtCollins.NCR.COM, or NCR Microelectronics ncr-mpd!mikemc@ncr-sd.sandiego.ncr.com, or 2001 Danfield Ct. uunet!ncrlnk!ncr-mpd!garage!mikemc Ft. Collins, Colorado (303) 223-5100 Ext. 378