A
advice please wireless 802.11 on RH8
This is not a homework assignment. I have written this already in
Let's say I want to extract all of the days of the week out of a
scalar like:
"We went to the beach on Monday but it turned out that Sunday would
have been better. The weather report Saturday said no rain until
Thursday but I asked Tuesday (a trick!) and she said it rained
Wednesday."
I want a regex/map/etc (no iterative clauses PLEASE!) that yields:
@days = qw( Monday Sunday Saturday Thursday Tuesday (Wednesday )
My best shot is:
my @days = keys %{ /((mon|tues|wednes|thurs|fri|satur|sun)day)/gi };
Which, oddly, doesn't seem to work. I say "oddly", because
/((mon|tues|wednes|thurs|fri|satur|sun)day)/gi
=
0 'Saturday'
1 'Satur'
2 'Thursday'
3 'Thurs'
4 'Tuesday'
5 'Tues'
6 'Wednesday'
7 'Wednes'
Yet %{ /((mon|tues|wednes|thurs|fri|satur|sun)day)/gi }
is an empty array!? *TILT*
Let's say I want to extract all of the days of the week out of a
scalar like:
"We went to the beach on Monday but it turned out that Sunday would
have been better. The weather report Saturday said no rain until
Thursday but I asked Tuesday (a trick!) and she said it rained
Wednesday."
I want a regex/map/etc (no iterative clauses PLEASE!) that yields:
@days = qw( Monday Sunday Saturday Thursday Tuesday (Wednesday )
My best shot is:
my @days = keys %{ /((mon|tues|wednes|thurs|fri|satur|sun)day)/gi };
Which, oddly, doesn't seem to work. I say "oddly", because
/((mon|tues|wednes|thurs|fri|satur|sun)day)/gi
=
0 'Saturday'
1 'Satur'
2 'Thursday'
3 'Thurs'
4 'Tuesday'
5 'Tues'
6 'Wednesday'
7 'Wednes'
Yet %{ /((mon|tues|wednes|thurs|fri|satur|sun)day)/gi }
is an empty array!? *TILT*