in reply to Re^2: search for '\' in perl
in thread search for '\' in perl
use strict; use warnings; open (HANDLE, 'C:\username\Sources') || die; $_ = join '', <HANDLE>; my $c = () = m/\\/g; print "Found $c matches!";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: search for '\' in perl
by Anonymous Monk on Dec 13, 2011 at 14:44 UTC |