pragma - Perl: are there any more directives that may be used in comments? -
afaik, can use following directive in comments set line number:
#!/usr/bin/perl # line 42000 die "debug me if can!";
which produce:
debug me if can! @ script.pl line 42000.
are there more similar directives, start '#', in perl?
the following section of perldoc discusses that: perlsyn - plain old comments (not!)
perl can process line directives, c preprocessor. using this, 1 can control perl's idea of filenames , line numbers in error or warning messages (especially strings processed eval()). syntax mechanism same c preprocessors: matches regular expression. ...
you can change line number , filename error , warning messages, nothing else: # line 42 "new_filename.plx"'
Comments
Post a Comment