in reply to Matching @ in string
You have introduced the array @t which is interpolated. So you have to quote the @ (or write q{h@t}).
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";
In Section
Seekers of Perl Wisdom