in reply to search for '\' in perl
use strict; use warnings; open (HANDLE, 'C:\username\Sources') || die; $_ = join '', <HANDLE>; my @m = m/\\/g; ### All matched strings print ('Found ' . ($#m + 1) . ' matches!');
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: search for '\' in perl
by kumeperl (Initiate) on Dec 13, 2011 at 13:04 UTC | |
by Anonymous Monk on Dec 13, 2011 at 13:30 UTC | |
by TJPride (Pilgrim) on Dec 13, 2011 at 14:32 UTC | |
by Anonymous Monk on Dec 13, 2011 at 14:44 UTC |