my $num = 100; my $extracted = do { open 0 and $_ = ( grep /my \$num = \d/, <0> )[0] +and /(\d)/; $1; };
In reply to Re: How to extract the first elemnet from an integer type value ???
by mreece
in thread How to extract the first elemnet from an integer type value ???
by sanjay nayak
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |