in reply to Re^2: Find string match
in thread Find string match

Not quite
The match returns 1 (true). Maybe you are thinking of s?
$str=~/\binto\s+(\S+)/; my $tablename = $1;
[^\s] is better written as \S

Replies are listed 'Best First'.
Re^4: Find string match
by Utilitarian (Vicar) on Feb 23, 2010 at 14:39 UTC
    Actually 1 is the size of the array of matches.

    print "Good ",qw(night morning afternoon evening)[(localtime)[2]/6]," fellow monks."