in reply to Matching @ in string
Example for an array interpolation:perl -e 'if ("h\@t" =~ /(\@)/ ) { print $1 }'
#!/usr/bin/perl use strict; use warnings; my @friends = ('Margaret', 'Richard', 'Carolyn', 'Rohan', 'Cathy', 'Yukiko'); print "Friends: @friends\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Matching @ in string
by loris (Hermit) on Nov 22, 2007 at 13:49 UTC | |
by dwu (Monk) on Nov 22, 2007 at 13:52 UTC | |
by mwah (Hermit) on Nov 22, 2007 at 14:34 UTC |