]|V|[agnus
07-27-2005, 01:58 AM
I don't write Perl, and I'm only vaguely familiar with it. I need to get a better idea of some of the basics, as well as the regex syntax used, because I am trying to port John Gruber's Markdown [http://daringfireball.com/projects/markdown/] to ColdFusion.
The idea came to me while working on some custom tags to do HTML formatting myself. I realized a lot of great work had already been done with Markdown, noticed it'd been ported to PHP, and thought it'd be a fun project to port it to ColdFusion.
For starters, I don't understand this line I'm seeing in Markdown and examples everywhere at the beginning of a function:
my $var = shift;
What is 'shift' doing?
So yes... as odd as it sounds, I think I just need some basic sort of primers, but also a good overview of Perl's regex syntax, as I know that ColdFusion differs.
Thanks!
The idea came to me while working on some custom tags to do HTML formatting myself. I realized a lot of great work had already been done with Markdown, noticed it'd been ported to PHP, and thought it'd be a fun project to port it to ColdFusion.
For starters, I don't understand this line I'm seeing in Markdown and examples everywhere at the beginning of a function:
my $var = shift;
What is 'shift' doing?
So yes... as odd as it sounds, I think I just need some basic sort of primers, but also a good overview of Perl's regex syntax, as I know that ColdFusion differs.
Thanks!