Env::PS1

Prompt string formatter
Download

Env::PS1 Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Ryan Niebur
  • Publisher web site:
  • http://search.cpan.org/~rsn/

Env::PS1 Tags


Env::PS1 Description

Prompt string formatter Env::PS1 is a Perl module that supplies variables that are "tied" to environment variables like 'PS1' and 'PS2', if read it takes the contents of the variable as a format string like the ones bash(1) uses to format the promptIt is intended to be used in combination with the various ReadLine packages.SYNOPSIS # use the import function use Env::PS1 qw/$PS1/; $ENV{PS1} = 'u@h $ '; print $PS1; $readline = ; # or tie it yourself tie $prompt, 'Env::PS1', 'PS1'; # you can also tie a scalar ref $format = 'u@h$ '; tie $prompt, 'Env::PS1', $format; Requirements: · Perl


Env::PS1 Related Software