Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1094229
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T23:56:37+00:00 2026-05-16T23:56:37+00:00

What does the below statement say exactly? my @dirs = qw(fred|flintstone <barney&rubble> betty );

  • 0

What does the below statement say exactly?

my @dirs = qw(fred|flintstone <barney&rubble> betty );

The complete story is:

my $tarfile = "something*wicked.tar";
my @dirs = qw(fred|flintstone <barney&rubble> betty );
system "tar", "cvf", $tarfile, @dirs;

This has been taken from Learning Perl, 4th Edition.

The result that the system command will run on shell is:

tar cvf fred|flintstone <barney&rubble> betty

But does this command has a meaning on unix?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T23:56:38+00:00Added an answer on May 16, 2026 at 11:56 pm

    qw() splits the string between parentheses through whitespaces (spaces, tabs, any number of them) and returns a list: "fred|flintstone", "<barney&rubble>", "betty"

    EDIT: hint from @kemp: it returns a list

    And now to your updated question:

    tar cvf fred|flintstone <barney&rubble> betty
    

    Yes, the characters |, <, > and & do have meanings in Linux:

    | redirects the standard output from tar cvf fred to the standard input of flintstone.

    < sends the file barney to the standard input of flintstone

    & runs the previous command and sends it to background

    > writes the standard output of rubble to the file betty

    Whether the whole line has a meaning, it depends on individual programs.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

What exactly does the below statement do? const char *string *string - '0' Thanks!
Why does the select statement below return two different values ? declare @tempDec decimal
Does the delete statement below doubly free an object? (...object_list is a global vector<object*>...)
I have the below LINQ statement, and get the error 'int' does not contain
Everything is in the title, I doesn't understand what the statement below does: #import
SQL Server (2005/2008) Each of the below statements have the same result. Does anyone
Code below does not run correctly and throws InvalidOperationExcepiton . public void Foo() {
The below does not compile: Func<int, int> fac = n => (n <= 1)
The XAML below does not work (the text does not change when mousing over):
What does the below JavaScript mean? Why is the function embedded inside ()? (function()

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.