Perl / TCL - command line arguments
Command line arguements can now be passed to perl and TCL scripts when executing them
in Cutter (alt+e or control+e) by an ARGS "statement" within a comment. For example,
#!/usr/bin/perl
# ARGS "item1 item2"
Data contained within the quoted string following the "special" comment
tag ARGS is read by Cutter and is passed to the script
as if the script had been invoked from the command line. The ARGS comment can occur
on any of the first 16 lines of text. When running a script from Cutter the first
commented line #!/usr/bin/perl can be omitted.
|