[ Context: Programming ]
Wrote a
Perl script after a while. Whoops! Had to look up perldoc and google to quickly gather examples of different things I was trying to do. Didn't take much time apart from that taken up by lookup itself.
The code in the script looks like this right now:
} elsif ($ln=~m/^!\s+(#\S+)\s+\d+\s+(\w+)/) {
Now, it needs to
(
Read more... )
Comments 3
btw, m is optional if you use // as delimiters. So you're trying to match something like:
! #afasfaj 235948 jlajga3094gvjaAAAAA_Ags
and capture the #afasfaj and jlajga3094gvjaAAAA_Ags into $1 and $2
whatever for?
Reply
*nod*
Places like perlmonks do help in this regard, and I am getting back to the community.
btw, m is optional if you use // as delimiters.
ah, thanks. :)
Reply
! #afasfaj 235948 jlajga3094gvjaAAAAA_Ags
and capture the #afasfaj and jlajga3094gvjaAAAA_Ags into $1 and $2
yes. :)
#afasfaj would be an IRC channel name. That's a line syntax from an eggdrop user file.
Reply
Leave a comment