Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by yankees26

  1. yankees26

    Getopt::Std and Getopt::Long at same time

    Thanks, I eventually figured that out and got it to work.
  2. yankees26

    Getopt::Std and Getopt::Long at same time

    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.
  3. yankees26

    tabs to spaces

    Okay, thanks.
  4. yankees26

    tabs to spaces

    Also, forget to ask something. I know the g at the end of regular expression makes it global, but I can't remember what the x does?
  5. yankees26

    tabs to spaces

    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?
  6. yankees26

    tabs to spaces

    Ok, but it still doesn't print anything.
  7. yankees26

    tabs to spaces

    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...

Part and Inventory Search

Back
Top