Is it possible to use both Getopt::Std and Getopt::Long? Because if I use Getopt::Std first it tries to interpret long arguments and if Getopt::Long if first it tries to interpret short options.
Well, I wanted it to print to the screen. Thanks for the help (not really sure why I had @ARGV[1]).
Although, I still have two questions. || can be replaced with or, correct? And what does my do?
I'm trying to write a program that turns tabs into spaces but it doesn't work. #!/usr/bin/perl
$argc = 0;
foreach (@ARGV)
{
++$argc;
}
if ($argc ne 1)
{
die "You either have none or not enough arguments.\n"
}
my $tab = "\t";
my $spaces = " ";
open FILE, $ARGV[1];
@LINES...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.